Compiler Design and Construction20815 marksDynamic programming code-generation algorithm
Write the code generation algorithm for the instruction a = b op c.
Write the code generation algorithm for the instruction a = b op c. [5]
Code generation is the final phase of compilation that maps intermediate code (three-address instructions) to target machine instructions. For a three-address instruction of the form a = b op c, the code generator must decide: - Which registers to use for operands - Where the current values of va...