<!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>RunningOnCygwin - 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%;">
      RunningOnCygwin
    <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">
MLton runs on the <a class="external" href="http://www.cygwin.com/"><img src="moin-www.png" alt="[WWW]" height="11" width="11">Cygwin</a> 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 <tt>setup.exe</tt> script.  Then, you can unpack the MLton binary <tt>tgz</tt> in your Cygwin environment. <p>
To run MLton cross-compiled executables on Windows, you must install the Cygwin <tt>dll</tt> on the Windows machine. 
</p>
<h2 id="head-b05203cf89b60eb36609a1a8b7f3cafe0927486a">Known issues</h2>

    <ul>

    <li>
<p>
 Time profiling is disabled. 
</p>
</li>
    <li class="gap">
<p>
 Cygwin's <tt>mmap</tt> emulation is less than perfect.  Sometimes it  interacts badly with <tt>Posix.Process.fork</tt>.  For idiomatic uses of  <tt>fork</tt> plus <tt>exec</tt>, you can instead use the  <tt>MLton.Process.spawn</tt> family of functions, which work on all our  platforms. 
</p>
</li>
    <li class="gap">
<p>
 Cygwin's <tt>mmap</tt> emulation does not make available as much  contiguous virtual address space as using the Windows  <tt>VirtualAlloc</tt> function.  Earlier versions of MLton used  <tt>VirtualAlloc</tt> instead of <tt>mmap</tt>, but that no longer works. 
</p>
</li>

    </ul>


<h2 id="head-a4bc8bf5caf54b18cea9f58e83dd4acb488deb17">Also see</h2>

    <ul>

    <li>
<p>
 <a href="RunningOnMinGW">RunningOnMinGW</a> 
</p>
</li>
</ul>

</div>



<p>
<hr>
Last edited on 2006-07-20 19:36:31 by <span title="ppp-71-139-187-151.dsl.snfc21.pacbell.net"><a href="StephenWeeks">StephenWeeks</a></span>.
</body></html>
