CS411: Introduction to Compiler Construction

Winter Session 2011/2012 Term 2

Note: We are using the same textbook and the material will be similar to last year.

News

Course Info Quick Links

Midterm

The midterm will be on Wednesday February 15th. A small set of sample problems that may be somewhat like what might possibly be on some midterm (is that sufficiently non-specific that I can get away with anything????) is here.

Assignments

Patches

As we go along, I'm sure that either you or I will find more problems with the starter code that you have been given. Here are the patches so far:

The patches are applied as follows:

Project Details and Due Dates:

Random other files

If you are not completely happy with your Functions compiler and would rather start from (I hope) a working implementation than continue with your own, I have made my solution available. It also includes the AST nodes that will be necessary to handle MiniJava. The solution is in: minijava-starter.zip.

If you would like to use them, there are some parsing and type checking tests in the following files:

They should replace the identically named files in the appropriate test package in your compiler project.

The sample MiniJava programs from the textbook are in this tar file: sample.tar.gz.

**NEW** The expected output from the sample MiniJava programs from the textbook are in this tar file: sample-out.tar.gz.

The sample MiniJava project has out-of-date runtime.c and runtime.h files. These should replace the ones in the runtime subdirectory of your project and are necessary to run the code natively on Linux or MAC.