Debian Codegraph @

lib/mlrisc-lib/MLRISC/Doc/latex/contributions.tex

raw
1 \section{Contributions}
2 The optimizations provided by MLRISC are at a similar level to
3 those performed by the Impact compiler; several target back ends
4 exist (Dec Alpha, HPPA, Sparc, x86, and PPC); but more importantly, the
5 framework has been demonstrated in \href{systems.html}{real use}
6 for languages with radically different execution models. These include:
7
8 \begin{center}
9 \begin{tabular}{|c|c|} \hline
10 Compiler & Association \\ \hline
11 \begin{color}{#005500}SML/NJ\end{color} & Bell Labs and Princeton\\\hline
12 \begin{color}{#005500}TIL\end{color} & CMU \\ \hline
13 \begin{color}{#005500}Tiger\end{color} & Princeton \\ \hline
14 \begin{color}{#005500}C--\end{color} & OGI \\ \hline
15 \begin{color}{#005500}SML/Regions\end{color} & DIKU \\ \hline
16 \begin{color}{#005500}Moby\end{color} & Bell Labs \\ \hline
17 \end{tabular}
18 \end{center}
19
20 The strength of MLRISC lies in the ability to easily create high
21 quality code generator for each of these systems. For example:
22
23 \begin{description}
24 \item[Tiger:] Has an execution
25 model very similar to C with stack allocated activation frames,
26 and also maintains static and dynamic chains to support lexical
27 scoping.
28
29 \item[TIL:] Is similar to C in its
30 use of activation frames, however it uses a
31 \emph{typed intermediate language} that
32 supports \emph{almost tag-free}
33 garbage collection. This has severe implications on the
34 interaction of spilling and garbage collection. The set of live
35 variables and their locations, be it registers or frame slots,
36 is recorded in a trace table for a specific program point. When
37 spilling occurs, it is necessary to adjust some of these trace
38 tables to reflect the new locations of live variables.
39
40 \item[SML/NJ:] Has no runtime
41 stack, but stores all execution context in a garbage collected
42 heap. This arrangement imposes special requirements for spilling
43 registers. SML/NJ also does \emph{dynamic linking} --- that is
44 to say, no use is made of a conventional linker, but machine
45 code is generated directly and linked into the interactive
46 environment, dynamically.
47
48 \item[C--:] Is a C-like portable assembly
49 language used as an intermediate language for high level typed language,
50 and provides direct compilation support for exceptions and
51 precise garbage collection. In addition, it allows
52 interoperability with C function calls.
53 \end{description}
54
55 It is not uncommon for any of these systems to store special global
56 values in dedicated registers, and use their own parameter passing
57 and callee-save conventions. In any language that supports garbage
58 collection, there are also the issues of generating gc type maps,
59 and gc-safety in aggressive optimizations. MLRISC deals with all these
60 important issues by allowing customization of many aspects of the system.