Code Generation. 2 The target machine Runtime environment Basic blocks and flow graphs Instruction selection Instruction selector generator Register allocation.