Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / RunningOnDarwin
... / ...
CommitLineData
1<!DOCTYPE html>\r
2<html lang="en">\r
3<head>\r
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r
5<meta name="generator" content="AsciiDoc 8.6.9">\r
6<title>RunningOnDarwin</title>\r
7<link rel="stylesheet" href="./asciidoc.css" type="text/css">\r
8<link rel="stylesheet" href="./pygments.css" type="text/css">\r
9\r
10\r
11<script type="text/javascript" src="./asciidoc.js"></script>\r
12<script type="text/javascript">\r
13/*<![CDATA[*/\r
14asciidoc.install();\r
15/*]]>*/\r
16</script>\r
17<link rel="stylesheet" href="./mlton.css" type="text/css">\r
18</head>\r
19<body class="article">\r
20<div id="banner">\r
21<div id="banner-home">\r
22<a href="./Home">MLton 20180207</a>\r
23</div>\r
24</div>\r
25<div id="header">\r
26<h1>RunningOnDarwin</h1>\r
27</div>\r
28<div id="content">\r
29<div id="preamble">\r
30<div class="sectionbody">\r
31<div class="paragraph"><p>MLton runs fine on Darwin (and on Mac OS X).</p></div>\r
32</div>\r
33</div>\r
34<div class="sect1">\r
35<h2 id="_notes">Notes</h2>\r
36<div class="sectionbody">\r
37<div class="ulist"><ul>\r
38<li>\r
39<p>\r
40MLton requires the <a href="GnuMP">GnuMP</a> library, which is available via\r
41<a href="http://www.finkproject.org">Fink</a>, <a href="http://www.macports.com">MacPorts</a>,\r
42<a href="http://mxcl.github.io/homebrew/">Homebrew</a>.\r
43</p>\r
44</li>\r
45<li>\r
46<p>\r
47For Intel-based Macs, MLton targets the <a href="RunningOnAMD64">AMD64\r
48architecture</a> on Darwin 10 (Mac OS X Snow Leopard) and higher and\r
49targets the <a href="RunningOnX86">x86 architecture</a> on Darwin 8 (Mac OS X\r
50Tiger) and Darwin 9 (Mac OS X Leopard).\r
51</p>\r
52</li>\r
53</ul></div>\r
54</div>\r
55</div>\r
56<div class="sect1">\r
57<h2 id="_known_issues">Known issues</h2>\r
58<div class="sectionbody">\r
59<div class="ulist"><ul>\r
60<li>\r
61<p>\r
62Executables that save and load worlds on Darwin 11 (Mac OS X Lion)\r
63and higher should be compiled with <span class="monospaced">-link-opt -fno-PIE</span> ; see\r
64<a href="MLtonWorld">MLtonWorld</a> for more details.\r
65</p>\r
66</li>\r
67<li>\r
68<p>\r
69<a href="ProfilingTime">ProfilingTime</a> may give inaccurate results on multi-processor\r
70machines. The <span class="monospaced">SIGPROF</span> signal, used to sample the profiled program,\r
71is supposed to be delivered 100 times a second (i.e., at 10000us\r
72intervals), but there can be delays of over 1 minute between the\r
73delivery of consecutive <span class="monospaced">SIGPROF</span> signals. A more complete\r
74description may be found\r
75<a href="http://lists.apple.com/archives/Unix-porting/2007/Aug/msg00000.html">here</a>\r
76and\r
77<a href="http://lists.apple.com/archives/Darwin-dev/2007/Aug/msg00045.html">here</a>.\r
78</p>\r
79</li>\r
80</ul></div>\r
81</div>\r
82</div>\r
83<div class="sect1">\r
84<h2 id="_also_see">Also see</h2>\r
85<div class="sectionbody">\r
86<div class="ulist"><ul>\r
87<li>\r
88<p>\r
89<a href="RunningOnAMD64">RunningOnAMD64</a>\r
90</p>\r
91</li>\r
92<li>\r
93<p>\r
94<a href="RunningOnPowerPC">RunningOnPowerPC</a>\r
95</p>\r
96</li>\r
97<li>\r
98<p>\r
99<a href="RunningOnX86">RunningOnX86</a>\r
100</p>\r
101</li>\r
102</ul></div>\r
103</div>\r
104</div>\r
105</div>\r
106<div id="footnotes"><hr></div>\r
107<div id="footer">\r
108<div id="footer-text">\r
109</div>\r
110<div id="footer-badges">\r
111</div>\r
112</div>\r
113</body>\r
114</html>\r