|
|
11.6 Register Allocation
To prepare for code generation, the compiler decides where
values of variables and expressions will reside during
execution. The preferred location is a register since
instructions execute faster when the data referred to
in operands reside in registers. Ultimate storage is
often a memory location, and due to the scarcity of
registers, even intermediate results may need to be
assigned memory locations also.
Memory allocation techniques are
discussed in Module 12; in this chapter, we will address
the issue of register allocation.
|