Assignment 6: Testing the compiler
Compiling and running the compiler
To compile the compiler, cd into the src/ch7 directory
and type make.
This will compile the compiler (which is an executable file called compile).
You should see a number of warnings when you compile the compiler;
that's expected.
(As you fill in the code for the compiler passes,
these warnings will go away).
The command-line interface to the compile program is identical to that
of the previous assignment, except for these things:
- There are three new passes:
- "reveal functions" (abbreviated "rf")
- "limit functions" (abbreviated "lf")
- "optimize" (abbreviated "opt")
Testing your compiler: the test scripts
The test scripts you have been using are essentially unchanged from the last assignment, except for those changes that had to be made to accommodate the new compiler passes.