Interpreters | The file 322-interps.tar.gz contains an interpreter for L1, the input language for your first compiler. (As the quarter goes on, we will be adding more interpreters to this file.) The file tests.tar.gz contains the test cases for the test fests that have been run. Use it with run-test-fests (in 322-interps.tar.gz) to test your implementations |
Homework assignments | 1a.pdf write some L1 programs, due April 8th 1b.pdf from L1 to x86, due April 15th 2a.pdf liveness and spilling, due April 29th 2b.pdf L2 to L1, register allocation, due May 6th 3.pdf L3 to L2, explicate calling convention and data representation, due May 13th 4.pdf L4 to L3, A normalization, due May 20th 5.pdf L5 to L4, closure conversion and λ lifting, due May 27th speed.pdf cleanup for contest, due June 3 |
Pair programming | Students are encouraged (but not required) to work in pairs. Pair programming is not team progamming, however. That is, pairs must promise (in writing) that they will always sit together when working on the assignments, never separately. If this is too much of a burden, work alone. |
Grades | Grades in the course are based on passing each of the programming assignnments, the speed test, plus passing your codewalk for up to 9 opportunities to pass. Grade | A | A- | B+ | B | C | D | F |
---|
Assignments passed | 9 | 8 | 7 | 6 | 5 | 1 | 0 |
---|
To pass one of the programming assignments (1b, liveness, spill, 2b, 3, 4, or 5), you must either pass 75% of the test cases in the initial test fest, submit a test suite that finds a bug in every (other) submission in the initial test fest, or pass 90% of the test cases in a later test fest. To pass the speed test, your compiler must generate a binary that produces the correct output for each of the submitted speed test programs. To pass your codewalk, you must produce code that is structured well, i.e., easy to read and maintain (it does not have to be perfect, but it has to be something that I would work on, rather than throw out and start over). The winner of the speed test and anyone that beats mzscheme on all programs gets a free pass to be used on any one assignment. Note that while mzscheme has had 15 years of continuous development that gives it a fair edge over your 10 or so weeks worth of effort, it is at a significant disadvantage because its versions of the primitive operations are more complex and have more error checking. Overall, this should make it a fair fight. (Put another way, getting performance in the face of all the details that go into a full-fledged, safe language is not easy.) You may resubmit any version of any assignment any time up to the last day of finals (June 11, 2010) and if you do not pass your codewalk, you may request a private codewalk (on the same assignment or a different one). |