01 Issues With The Code Generator
01 Issues With The Code Generator
TASKS
1. Instruction selection
- involves choosing appropriate target-machine instructions to
implement the IR statements
3. Instruction ordering
- involves deciding in what order to schedule the execution of
instructions
3. Instruction Selection
4. Register Allocation
5. Evaluation Order
3. INSTRUCTION SELECTION
INC a
VS
4. REGISTER ALLOCATION
Example:
M x, y
D x, y
5. EVALUATION ORDER