ECE 553: Compiler Construction

This class is aimed at graduate students, seniors, and ambitious juniors who are strong/competent programmers. The pre-requisite for this course for undergraduates is CS/ECE 250 (or CS 104 or ECE 152 under the old numbering scheme). Graduate students should have a comparable background—they should be comfortable with programming, data structures, and MIPS assembly. Graduate students who lack such a background should certainly have complete mastery over the material in ECE 550 and/or ECE 551, with 650 and 651 strongly recommended. 

I will assume you are a completely capable programmer at the start of this course. 

This course is significant work: you will write a compiler from start to finish. For students who are adequately prepared for this course, this is an exciting, fulfilling, and fun experience. For students who are not prepared, this is not the course to learn to program in.

Course Resources

Lectures

This is what I expect for a schedule, but (except for exam dates) is subject to change:

Tuesday Lecture Thursday Lecture
Jan 10: (no class: Winter Break) Jan 12: Intro/SML
Jan 17: Regexps Jan 19: Lexers
Jan 24: LL Parsing Jan 26: LR Parsing
Jan 31: LR Parsing/ML-yacc Feb 2: ASTs, Symbol tables
Feb 7: Static Analysis Feb 9: Static Analysis
Feb 14: Sub-typing Feb 16: Polymorphic type inference
Feb 21: Stacks & Procedure Linkage Feb 23: AST to IR
Feb 28: AST to IR Mar 2: Catchup/Review/etc
Mar 7: Basic Blocks Mar 9: Midterm Exam
Mar 14: Spring Break (no class) Mar 16: Spring Break (no class)
Mar 21: Instruction Selection Mar 23:  Data flow, liveness
Mar 28:Register Allocation Mar 30: Register Allocation (cont'd)
April 4: Dataflow Revisited April 6: Dataflow (cont'd)
April 11: Loops April 13: Garbage Collection
April 18: (TBD) April 20: Catchup, Review, or Compiler Hacking Day
April 25: Compiler Hacking Day