Program 3: Code Generation

Assignment:

Create a code generator that generates C++ code.

Description:

Each compiler will create a .cc file for a valid input program.

Turnin:

Copy all your source files, including a Makefile, to your turnin directory by the specified time. Do not include binaries or object files.

Grading:

Testing consists of compiling a set of files. As usually, more files will be used for testing than disclosed. If the input is a valid ice9 program, your compiler outputs a .cc file. The name of the output file is the name of the input file, with the .9 replaced with .cc. The test program files have different point values; no partial credit. Your compiler will be invoked with a command similar to the following:

ice9 file.9
CC file.cc -o file
file >& file.out

Output will then be compared to known correct output

diff file.expected file.out

Therefore, students must ensure that their program's output is identical to that expected.
vin@cse.nd.edu
Last modified: Tue Mar 19 23:39:57 EST 2002