Compiling the compiler can be done with one statement. It’s always best to remove all units from the compiler directory first, so something like
on linux, and on dos
After this, the compiler can be compiled with the following command line:
All the options must be given on a single line, the backslash is needed if you want to specify the options on multiple lines.
So, the minimum options are:
So the absolute minimal command line is
Some other command line options can be used, but the above are the minimum. A list of recognised options can be found in table (F.1).
Define | does what |
GDB | Support of the GNU Debugger (required switch). |
I386 | Generate a compiler for the Intel i386+ processor family. |
M68K | Generate a compiler for the M680x0 processor family. |
X86_64 | Generate a compiler for the AMD64 processor family. |
POWERPC | Generate a compiler for the PowerPC processor family. |
POWERPC64 | Generate a compiler for the 64-bit PowerPC processor family. |
ARM | Generate a compiler for the Intel ARM processor family. |
SPARC | Generate a compiler for the SPARC processor family. |
EXTDEBUG | Some extra debug code is executed. |
MEMDEBUG | Some memory usage information is displayed. |
SUPPORT_MMX | only i386: enables the compiler switch MMX which |
allows the compiler to generate MMX instructions. | |
EXTERN_MSG | Don’t compile the msgfiles in the compiler, always use |
external messagefiles. | |
NOOPT | Do not include the optimizer in the compiler. |
CMEM | Use the C memory manager. |
This list may be subject to change, the source file pp.pas always contains an up-to-date list.