File: compiler.tex

package info (click to toggle)
oaklisp 1.3.7-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,776 kB
  • sloc: ansic: 4,014; makefile: 149
file content (58 lines) | stat: -rw-r--r-- 1,986 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
% This file is part of Oaklisp.
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% The GNU GPL is available at http://www.gnu.org/licenses/gpl.html
% or from the Free Software Foundation, 59 Temple Place - Suite 330,
% Boston, MA 02111-1307, USA


\chapter{The Compiler}

\subsection{File Types}

There are a number of different kinds of object files, distinguished
by extension.

\begin{center}
\begin{tabular}{l|l}
\emph{extension} & \multicolumn{1}{c}\emph{file type} \\\hline
\tt .oak  & Oaklisp source file \\
\tt .omac & Macroexpanded Oaklisp source file \\
\tt .ou   & Assembly file, not peephole optimized \\
\tt .oc   & Assembly file, peephole optimized \\
\tt .oa   & Assembled object file
\end{tabular}
\end{center}

\gv{compiler-from-extension}
\doc{The extension of the input files the compiler will read.
Default \df{".oak"}.  This variable is in the compiler locale.}

\gv{compiler-to-extension}
\doc{The extension the the output files the compiler will produce.
Default \df{".oa"}.  This variable is in the compiler locale.}

\gv{compiler-noisiness}
\doc{The amount of noise the compiler should produce; zero for none, 1
for a little, and 2 for a lot.  Default value is 1, but the
\df{oakliszt} batch file compiler sets it to zero.  This variable is
in the compiler locale.}


\subsection{Object File Formats}


\subsection{Compiler Internals}

Some compiler internals documentation.  Very sketchy, just enough to
give people a vague idea of what the internal program representation
is and what the various passes are for.