| 1 |
= RunningOnDarwin |
| 2 |
|
| 3 |
MLton runs fine on Darwin (and on Mac OS X). |
| 4 |
|
| 5 |
== Notes |
| 6 |
|
| 7 |
* MLton requires the <<GMP#>> library, which is available via |
| 8 |
https://brew.sh/[Homebrew], http://www.macports.com[MacPorts], |
| 9 |
and http://www.finkproject.org[Fink]. |
| 10 |
n |
| 11 |
* For Intel-based Macs, MLton targets the <<RunningOnAMD64#,AMD64 |
| 12 |
architecture>> on Darwin 10 (Mac OS X Snow Leopard) and higher and |
| 13 |
targets the <<RunningOnX86#,x86 architecture>> on Darwin 8 (Mac OS X |
| 14 |
Tiger) and Darwin 9 (Mac OS X Leopard). |
| 15 |
|
| 16 |
== Known issues |
| 17 |
|
| 18 |
* Executables that save and load worlds on Darwin 11 (Mac OS X Lion) |
| 19 |
and higher should be compiled with `-link-opt -fno-PIE` ; see |
| 20 |
<<MLtonWorld#>> for more details. |
| 21 |
|
| 22 |
* <<ProfilingTime#>> may give inaccurate results on multi-processor |
| 23 |
machines. The `SIGPROF` signal, used to sample the profiled program, |
| 24 |
is supposed to be delivered 100 times a second (i.e., at 10000us |
| 25 |
intervals), but there can be delays of over 1 minute between the |
| 26 |
delivery of consecutive `SIGPROF` signals. A more complete |
| 27 |
description may be found |
| 28 |
http://lists.apple.com/archives/Unix-porting/2007/Aug/msg00000.html[here] |
| 29 |
and |
| 30 |
http://lists.apple.com/archives/Darwin-dev/2007/Aug/msg00045.html[here]. |
| 31 |
|
| 32 |
== Also see |
| 33 |
|
| 34 |
* <<RunningOnAMD64#>> |
| 35 |
* <<RunningOnPowerPC#>> |
| 36 |
* <<RunningOnX86#>> |