1.

Some code optimizations are carried out on the intermediate code because _______________(a) They enhance the portability of the complier to other target processors(b) Program analysis is name accurate on intermediate code than on machine code(c) The information from data flow analysis cannot otherwise be used for optimization(d) The information from the front end cannot otherwise be used for optimizationThis question was addressed to me in class test.I would like to ask this question from Intermediate Code-Generation topic in chapter Syntax Directed Definition and Translations of Compiler

Answer» RIGHT option is (b) PROGRAM ANALYSIS is name accurate on intermediate CODE than on machine code

Easiest explanation: Code optimizations are carried out on the intermediate code because program analysis is more accurate on intermediate code than on machine code.


Discussion

No Comment Found

Related InterviewSolutions