<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="robots" content="index,nofollow">



<title>FAQ - MLton Standard ML Compiler (SML Compiler)</title>
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="all" href="common.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="screen" href="screen.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="print" href="print.css">


<link rel="Start" href="Home">


</head>

<body lang="en" dir="ltr">

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-833377-1";
urchinTracker();
</script>
<table bgcolor = lightblue cellspacing = 0 style = "border: 0px;" width = 100%>
  <tr>
    <td style = "
		border: 0px;
		color: darkblue; 
		font-size: 150%;
		text-align: left;">
      <a class = mltona href="Home">MLton MLTONWIKIVERSION</a>
    <td style = "
		border: 0px;
		font-size: 150%;
		text-align: center;
		width: 50%;">
      FAQ
    <td style = "
		border: 0px;
		text-align: right;">
      <table cellspacing = 0 style = "border: 0px">
        <tr style = "vertical-align: middle;">
      </table>
  <tr style = "background-color: white;">
    <td colspan = 3
	style = "
		border: 0px;
		font-size:70%;
		text-align: right;">
      <a href = "Home">Home</a>
      &nbsp;<a href = "Index">Index</a>
      &nbsp;
</table>
<div id="content" lang="en" dir="ltr">
Feel free to ask questions and to update answers by editing this page. Since we try to make as much information as possible available on the web site and we like to avoid duplication, many of the answers are simply links to a web page that answers the question. <h2 id="head-f1f9f5685d23c3281c96d9b8044327fd6383b108">How do you pronounce MLton?</h2>
<p>
<a href="Pronounce">Pronounce</a> 
</p>
<h2 id="head-8c50d4cab025df11817ce02ce31ce79b55fe5022">What SML software has been ported to MLton?</h2>
<p>
<a href="Libraries">Libraries</a> 
</p>
<h2 id="head-8bae3f9634b3c37ee10469682a818270ecc93448">What graphical libraries are available for MLton?</h2>
<p>
<a href="Libraries">Libraries</a> 
</p>
<h2 id="head-8f8a8041340f3d4c8225acd898598cb5e53bd91a">How does MLton's performance compare to other SML compilers and to other languages?</h2>
<p>
MLton has <a href="Performance">excellent performance</a>. 
</p>
<h2 id="head-192264d667fe968b31a7cb67efc7f5b812d9b2c3">Does MLton treat monomorphic arrays and vectors specially?</h2>
<p>
MLton implements monomorphic arrays and vectors (e.g. <tt>BoolArray</tt>, <tt>Word8Vector</tt>) exactly as instantiations of their polymorphic counterpart (e.g. <tt>bool&nbsp;array</tt>, <tt>Word8.word&nbsp;vector</tt>).  Thus, there is no need to use the monomorphic versions except when required to interface with the <a href="BasisLibrary">Basis Library</a> or for portability with other SML implementations. 
</p>
<h2 id="head-a853893393a762751e90db219072e6a768c91f39">Why do I get a Segfault/Bus error in a program that uses IntInf/LargeInt to calculate numbers with several hundred thousand digits?</h2>
<p>
<a href="GnuMP">GnuMP</a> 
</p>
<h2 id="head-3f3ea5484de0f96d0f22bda712ddd1e71bd62faf">How can I decrease compile-time memory usage?</h2>

    <ul>

    <li>
<p>
 Compile with <tt>-verbose&nbsp;3</tt> to find out if the problem is due to  an SSA optimization pass.  If so, compile with <tt>-drop-pass&nbsp;</tt><em>pass</em>  to skip that pass. 
</p>
</li>
    <li class="gap">
<p>
 Compile with <tt>@MLton&nbsp;hash-cons&nbsp;0.5&nbsp;--</tt>, which will instruct the  runtime to hash cons the heap every other GC.  
</p>
</li>
    <li class="gap">
<p>
 Compile with <tt>-polyvariance&nbsp;false</tt>, which is an undocumented  option that causes less code duplication. 
</p>
</li>

    </ul>


<p>
Also, please <a href="Contact">Contact</a> us to let us know the problem to help us better understand MLton's limitations. 
</p>
<h2 id="head-5da60bc9034a764c34c1be37aa3017ce70bc131e">How do I see what has changed recently in the wiki?</h2>
<p>
<a href="http://mlton.org/RecentChanges"><img src="moin-www.png" alt="[WWW]" height="11" width="11">RecentChanges</a> 
</p>
<h2 id="head-756d1bccf1783a78c8c7af9ff6aadb9dee01b567">How portable is SML code across SML compilers?</h2>
<p>
<a href="StandardMLPortability">StandardMLPortability</a> 
</p>
</div>



<p>
<hr>
Last edited on 2005-12-02 01:19:12 by <span title="ppp-71-139-183-221.dsl.snfc21.pacbell.net"><a href="StephenWeeks">StephenWeeks</a></span>.
</body></html>
