MLton MLTONWIKIVERSION

RunningOnCygwin

Home Index

MLton runs on the Cygwin emulation layer, which provides a Posix-like environment while running on Windows. To run MLton with Cygwin, you must first install Cygwin on your Windows machine. To do this, visit the Cygwin site from your Windows machine and run their `setup.exe` script. Then, you can unpack the MLton binary `tgz` in your Cygwin environment.

To run MLton cross-compiled executables on Windows, you must install the Cygwin `dll` on the Windows machine.

## Known issues

- Time profiling is disabled.

- Cygwin's `mmap` emulation is less than perfect. Sometimes it interacts badly with `Posix.Process.fork`. For idiomatic uses of `fork` plus `exec`, you can instead use the `MLton.Process.spawn` family of functions, which work on all our platforms.

- Cygwin's `mmap` emulation does not make available as much contiguous virtual address space as using the Windows `VirtualAlloc` function. Earlier versions of MLton used `VirtualAlloc` instead of `mmap`, but that no longer works.

## Also see

- RunningOnMinGW

Last edited on 2006-07-20 19:36:31 by StephenWeeks.