• Input: Abstract syntax tree
•  Output: Intermediate code
• Method:
• Intermediate code generator produces the
   internal version of target program called
   intermediate code for these reasons:
•  uniformity
•  direct translation to target program is   difficult and “rough”
•  optimization
Intermediate code generator
12/17