Code Optimization and Code Generation
1. Explain the various issues in the design of code generator.
Discuss the various factors affecting the code generation process.
Ans: The various factors that affect the code generation process are as follows:
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 ...