The DLX compiler and assembler take C/C++ programs and convert them into an object format that the DLX simulator is capable of reading and executing.
The compiler is a gcc/g++ cross-compiler, compiling code into DLX assembly language. It should be possible to build it on any system on which gcc works correctly, though installing it can be difficult. The README file in the config/dlx directory describes the installation procedure.
Almost any standard C and C++ code will compile properly, though there are a few important exceptions:
The DLX compiler is otherwise similar to standard gcc, and accepts the same options. In particular, the -c, -O, and -o options will be most useful (and relevant).
The DLX assembler converts assembly language files into object files loadable by the DLX simulator. While the DLX OS can use any format it chooses, using the same format as the simulator means that the assembler need not know whether it's compiling the operating system or user programs. Thus, DLXOS currently includes code for reading object files produced by the assembler.
The assembler takes several options:
The Makefile for DLXOS has examples showing how to use the compiler
and the assembler.