Code Generation: Introduction
10/43
• Blind generation vs. Context-sensitive generation
Variants of code genarations:
1) Blind
generation
• For
every 3AC instruction, there is a procedure
that generates the corresponding target code
2) Context-sensitive generation
• Reduction of loading and storing
between
registers and
memory.
Main disadvantage:
• As each 3AC instruction is out of the basic
block context, a lot of redundant loading and storing occur