11

Code Optimization and Code Generation

1. Explain the various issues in the design of code generator.

Or

   Discuss the various factors affecting the code generation process.

Ans: The various factors that affect the code generation process are as follows:

images Input: The intermediate code produced by the intermediate code generator or code optimizer of the compiler is given as input to the code generator. At the time of code generation, the source program is assumed to be scanned, parsed, and translated into a relatively low-level intermediate representation. Type conversion operators are assumed to be inserted wherever required, and that semantic ...

Get Express Learning: Principles of Compiler Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.