Code Generation-20241219074111
Code Generation-20241219074111
Techniques
Effective Period : September 2023
Code Generation
Session 25 - 26
Learning Outcomes
symbol
table
• Though out the extra effort for linking & loading, but
we have more flexibility because it can compile the
subroutine separately.
Example:
Each three-address statement in the form: x: = y + z
where x, y, and z is allocated in a static, can be
translated into a sequence code:
Static allocation
In static allocation call statement is translated into:
Move #here + 20, callee.static_area
GOTO calle.code_area