Transpiled C code compatibility

44 views
Skip to first unread message

Mustapha Rashiduddin

unread,
Jul 24, 2019, 5:46:06 PM7/24/19
to ats-lang-users
I know ATS isn't supported on Windows (without Cygwin) however I was wondering if the transpiled C code is (if we were to use the pthreads-win32 library).
Thank you.

Chris Double

unread,
Jul 24, 2019, 6:29:12 PM7/24/19
to ats-lan...@googlegroups.com
Last time I tried the code compiled with mingw. I wrote a post on
cross compiling that used mingw on Linux to build Windows executables:
https://bluishcoder.co.nz/2017/12/02/cross-compiling-ats-programs.html

If you avoid posix things not supported on Windows, and write FFI
declarations for the Windows API you should be able to build Windows
programs.

--
https://bluishcoder.co.nz

Mustapha Rashiduddin

unread,
Jul 24, 2019, 7:01:25 PM7/24/19
to ats-lang-users
that sounds great, stupid question on my part, how do you make sure you're not writing posix things in ats? is it obvious? i haven't looked at it yet, i just like the idea of it right now, if i'm 100% sure it fits my requirements, i'll jump in and learn it. thx again.
Reply all
Reply to author
Forward
0 new messages