| 1 |
\section{Line Counts} |
| 2 |
|
| 3 |
\begin{Table}{|l|r|r|}{align=right} \hline |
| 4 |
& SML/NJ & MLRISC \\ \hline |
| 5 |
\begin{color}{#00aa00}Generic\end{color} & 3,023 & 6,814 \\ |
| 6 |
\begin{color}{#00aa00}Hppa\end{color} & 725 & 2,285 \\ |
| 7 |
\begin{color}{#00aa00}Alpha\end{color} & 614 & 2,316 \\ \hline |
| 8 |
TOTAL & 4,362 & 11,415 \\ \hline |
| 9 |
\end{Table} |
| 10 |
The table shows the number of lines involved in a basic MLRISC code |
| 11 |
generator for SML/NJ that only does graph coloring register |
| 12 |
allocation. The SML/NJ column shows the number of lines specific to |
| 13 |
SML/N and the MLRISC column shows the number of lines specific to |
| 14 |
MLRISC. The \begin{color}{#00aa00}Generic\end{color} shows the |
| 15 |
number of lines that are target independent for both SML/NJ and |
| 16 |
MLRISC. The \begin{color}{#00aa00}Hppa\end{color} and |
| 17 |
\begin{color}{#00aa00}Alpha\end{color} shows the number of lines that are |
| 18 |
target dependent for both the HP Hppa and DEC Alpha targets. |
| 19 |
|
| 20 |
The bulk of the \sml{3,023} generic to SML/NJ is involved in the |
| 21 |
generation of MLRisc trees. Once this is done the incremental cost |
| 22 |
of adding a target is between \sml{600} to \sml{700} lines. |
| 23 |
|
| 24 |
The MLRISC column shows that the bulk of MLRISC is quite generic and |
| 25 |
a client is saved from writing \sml{11,415} lines of code. |
| 26 |
|
| 27 |
\begin{Table}{|l|r|r|}{align=left} \hline |
| 28 |
& SML/NJ & MLRISC \\ \hline |
| 29 |
\begin{color}{#00aa00}Generic\end{color} & 121 + 3,023 & 15,686 + 6,814\\ |
| 30 |
\begin{color}{#00aa00}Hppa\end{color} & 32 + 725 & 920 + 2,285 \\ |
| 31 |
\begin{color}{#00aa00}Alpha\end{color} & 614 & 2,316 \\ \hline |
| 32 |
TOTAL & 153 + 4,362 & 16,606 + 11,415 \\ \hline |
| 33 |
\end{Table} |
| 34 |
If one were to include the preliminary numbers for global acyclic |
| 35 |
scheduling in the above table, we find that the incremental cost |
| 36 |
required by the client is quite small -- approximately \sml{153} |
| 37 |
lines of which \sml{121} are generic. However, the scheduling |
| 38 |
infra structure is quite large, a lot of it being quite generic. |
| 39 |
|
| 40 |
\br{left=clear} |