<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.8">
<title>RunningOnAMD64</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css"/>
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20130715</a>
</div>
</div>
<div id="header">
<h1>RunningOnAMD64</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>MLton runs fine on the AMD64 (aka "x86-64" or "x64") architecture.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_notes">Notes</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
When compiling for AMD64, MLton targets the 64-bit ABI.
</p>
</li>
<li>
<p>
On AMD64, MLton supports native code generation (<span class="monospaced">-codegen native</span> or <span class="monospaced">-codegen amd64</span>).
</p>
</li>
<li>
<p>
When compiling for AMD64, MLton uses <span class="monospaced">-align 8</span> by default.  Using
<span class="monospaced">-align 4</span> may be incompatible with optimized builds of the <a href="GnuMP">GnuMP</a>
library, which assume 8-byte alignment.  (See the thread at
<a href="http://www.mlton.org/pipermail/mlton/2009-October/030674.html">http://www.mlton.org/pipermail/mlton/2009-October/030674.html</a> for more
details.)
</p>
</li>
</ul></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
