Windows implementation of Posix

Anoq of the Sun anoq@HardcoreProcessing.com
Wed, 03 Jan 2001 13:37:58 +0100


Hello Stephen!


"Stephen Weeks" wrote:
> 
> Hi ANOQ.  I saw your post on comp.lang.ml regarding MLton.
> 
> > MLton is
> > implemented using POSIX and it works just fine on
> > Windows after I changed a few things in the runtime
> > system (with some help from the MLton guys :)
> 
> I knew you had been successfully running MLton on Linux and crosscompiling to
> windows.  However, I took your statement above to mean that you were in fact
> running a crosscompiled version of MLton successfully on windows.  Is that
> correct?

Nope - but some of the SML Basis Library stuff (like TextIO
and BinIO) uses POSIX, and I can use them just fine in
my apps. :)

I think what is missing before a crosscompile of MLton
would be possible is some of the Timer stuff and
maybe some other modules in SML Basis Library - but
I really think that it's "close to possible" to
crosscompile MLton to Windows. The main problem
would probably be when running the compiler on
Windows - and link correctly to the appropriate
OS-libraries on Windows, but that might be
possible with the Cygwin environment on Windows.

I have also had second thoughts about the post -
that the POSIX stuff might really reside in the
GCC-crosscompiler stuff (and Cygwin on Windows?).
But I'm not really sure... It just seems that
something POSIX'ish is working in Windows :)


Cheers
-- 
http://www.HardcoreProcessing.com