[MLton] Windows structure

skaller skaller at users.sourceforge.net
Tue Feb 13 18:08:22 PST 2007

On Tue, 2007-02-13 at 19:01 +0200, Vesa Karvonen wrote:
> I have started implementing a Windows library for MLton.  You
> can find it from the mltonlib repository at:
>   http://mlton.org/cgi-bin/viewsvn.cgi/mltonlib/trunk/com/ssh/windows/unstable/
> At the moment, the bindings are implemented using NLFFI and C
> stubs.  Hopefully we can remove most of the C stubs in the
> future when MLton's NLFFI understands calling convention
> specifiers.  Some amount of string/buffer copying is being
> made that could be eliminated using MLton's lower level FFI.
> I'm not in any hurry to do so, however.
> The Windows structure doesn't yet implement all of the Basis
> Library spec.  If you need some Windows functionality, feel
> free to submit patches.  I'll probably only add new stuff to
> the Windows library when I specifically need it.

Be aware, Windows has two distinct variants: win32 and win64.
The latter has 2 variants: emt64 (amd64), ia64.

So there are 3 distinct calling conventions at the machine
level. If you run with .NET, then you need to add CLR on
top of that.

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

More information about the MLton mailing list