===============================================
Exercises 2011
Compiler Construction
Timothy G. Griffin
- Lecture 1
-
See the "experiments" with test1.c associated
with Lecture 1 on the web site. Perform similar
experiments with your favorite language (C, Java,
ML, etc) on your favorite platform (Linux, Windows,
Mac OS, etc). This may require reading your
compiler's manual pages, and finding the
right applications to turn object files into ASCII.
- Intentionally insert lexical, syntax, or type
errors in your input program to test the quality
of your compiler's error messages. Report anything
unusually amusing.
- Challenge! Try to get your compiler to issue
an error message AFTER your program has passed
the static semantics phase (type checking, variable
scope correctness, etc). Best example will win a
Kit-Kat bar (Dr. Tim is the judge of best!).
- Lectures 4 and 5