<!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>CompilerOverview - 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">

<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 20051202</a>
    <td style = "
		border: 0px;
		font-size: 150%;
		text-align: center;
		width: 50%;">
      CompilerOverview
    <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">
The following table shows the overall structure of the compiler.  <a href="IntermediateLanguage">IntermediateLanguage</a>s are shown in the center column.  The names of compiler passes  are listed in the left and right columns.  
    <ul>


<div>
<table>
 <tr>
<td colspan="3" align="center">
 <strong>Compiler Overview</strong>                                                           </td>
</tr>
 <tr>
<td align="center">
 <em>Translation Passes</em> </td>
<td align="center">
 <a href="IntermediateLanguage">IntermediateLanguage</a> </td>
<td align="center">
 <em>Optimization Passes</em> </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="1">
                      </td>
<td colspan="1" align="center" rowspan="1">
 Source                 </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="FrontEnd">FrontEnd</a>           </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="1">
                      </td>
<td colspan="1" align="center" rowspan="1">
 <a href="AST">AST</a>                </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="Elaborate">Elaborate</a>          </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="3">
                      </td>
<td colspan="1" align="center" rowspan="3">
 <a href="CoreML">CoreML</a>             </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="CoreMLSimplify">CoreMLSimplify</a>     </td>
</tr>
 <tr>
<td>
                           </td>
</tr>
 <tr>
<td align="center">
 <a href="Defunctorize">Defunctorize</a>       </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="3">
                      </td>
<td colspan="1" align="center" rowspan="3">
 <a href="XML">XML</a>                </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="XMLSimplify">XMLSimplify</a>        </td>
</tr>
 <tr>
<td>
                           </td>
</tr>
 <tr>
<td align="center">
 <a href="Monomorphise">Monomorphise</a>       </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="3">
                      </td>
<td colspan="1" align="center" rowspan="3">
 <a href="SXML">SXML</a>               </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="SXMLSimplify">SXMLSimplify</a>       </td>
</tr>
 <tr>
<td>
                           </td>
</tr>
 <tr>
<td align="center">
 <a href="ClosureConvert">ClosureConvert</a>     </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="3">
                       </td>
<td colspan="1" align="center" rowspan="3">
 <a href="SSA">SSA</a>                </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="SSASimplify">SSASimplify</a>        </td>
</tr>
 <tr>
<td>
                           </td>
</tr>
 <tr>
<td align="center">
 <a href="ToSSA2">ToSSA2</a>             </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="3">
                       </td>
<td colspan="1" align="center" rowspan="3">
 <a href="SSA2">SSA2</a>               </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="SSA2Simplify">SSA2Simplify</a>       </td>
</tr>
 <tr>
<td>
                           </td>
</tr>
 <tr>
<td align="center">
 <a href="ToRSSA">ToRSSA</a>             </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td colspan="1" align="center" rowspan="3">
                       </td>
<td colspan="1" align="center" rowspan="3">
 <a href="RSSA">RSSA</a>               </td>
<td>
                            </td>
</tr>
 <tr>
<td align="center">
 <a href="RSSASimplify">RSSASimplify</a>       </td>
</tr>
 <tr>
<td>
                           </td>
</tr>
 <tr>
<td align="center">
 <a href="ToMachine">ToMachine</a>          </td>
<td>
                             </td>
<td>
                            </td>
</tr>
 <tr>
<td>
                           </td>
<td colspan="1" align="center" rowspan="1">
 <a href="Machine">Machine</a>            </td>
<td>
                            </td>
</tr>
</table>
</div>

    </ul>


<p>
The <tt>Compile</tt> functor (
<a href = "http://mlton.org/cgi-bin/viewsvn.cgi/mlton/tags/on-20051202-release/mlton/main/compile.sig?view=markup"><img src="moin-www.png" alt="[WWW]" height="11" width="11">compile.sig</a>
,
<a href = "http://mlton.org/cgi-bin/viewsvn.cgi/mlton/tags/on-20051202-release/mlton/main/compile.fun?view=markup"><img src="moin-www.png" alt="[WWW]" height="11" width="11">compile.fun</a>
), controls the high-level view of the compiler passes, from <a href="FrontEnd">FrontEnd</a> to code generation. 
</p>
</div>



<p>
<hr>
Last edited on 2005-08-19 15:41:28 by <span title="cfs32.cs.cornell.edu"><a href="MatthewFluet">MatthewFluet</a></span>.
</body></html>
