[MLton] Possible bug in MLton-7230.msi for MinGW and 64 bit questions

Wesley W. Terpstra wesley at terpstra.ca
Sun Nov 1 19:35:53 PST 2009


On Mon, Nov 2, 2009 at 2:44 AM, David Hansel
<hansel at reactive-systems.com> wrote:
>>> Also,  from the web site it sounds like the MLton-7230.msi version supports
>>> generating Windows 64 bit executables,  is that true?  If so,  how do we tell
>>> MLton to generate a 64 bit executable?
>>
>> mlton -target x86_64-w64-mingw32 your-mlb-file-here.mlb
>
> Calling mlton -target x86_64-w64-mingw32 -verbose 2 test.sml
> for a "Hello World" style test.sml gives me the following error:
>
> openIn c:\program files (x86)\mlton\lib\mlton\x86_64-w64-mingw32\sizes:
> The system cannot find the file specified.

You need to install the 64-bit pieces from the msi. When it asks you
complete/typical/custom, select complete. It sounds like you selected
typical which does not install the 64-bit toolchain.

> One other question:  Are FFI calls supported in the Win64 executables
> produced by MLton?

Yes

> Are there any special considerations regarding 64 bit FFI?

No.



More information about the MLton mailing list