
1
• Everything covered in class since the midterm in
detail
• The assumption is you know everything covered
before that
• Questions about how is such-and-such done in
Tiger compiler are legit
– I won’t ask you to write ML code though
• List on following slides IS NOT complete
– everything covered in class is fair game
new topics:
• Intermediate Representation
• Instruction Selection
• Basic Blocks and Traces
• Optimizations
• Liveness
• Dataflow analysis
• Register allocation
• Instruction scheduling
old topics:
• Compilers
• Lexical analysis
• Parsing
• Abstract Syntax Tree
• Symbol Tables
• Type checking and Semantic Analysis
• Stack Frames
• Procedure Calling Conventions
Intermediate Representation
• what and why? where is the line between source
code/IR/machine insts.
• expressions, statements and conditionals
• simple variables to function calls
– what’s interesting
– e.g., - give intermediate tree representation for array
creation
• conditionals, special cases, & and | operations…
• while, for loops; case statements
• function calls, external functions, procedure
`prologue/epilogue’