...
GATE 2009
March 14, 2025
GATE 2008
March 14, 2025
GATE 2009
March 14, 2025
GATE 2008
March 14, 2025

GATE 2008

Question 12

Some code optimizations are carried out on the intermediate code because

A
They enhance the portability of the compiler to other target processors
B
Program analysis is more accurate on intermediate code than on machine code
C
The information from dataflow analysis cannot otherwise be used for optimization
D
The information from the front end cannot otherwise be used for optimization
Question 12 Explanation: 
The code-optimization on intermediate code generation will always enhance the portability of the compiler to target processors. The main reason behind this is, as the intermediate code is independent of the target processor on which the code will be executed, so the compiler is able to optimize the intermediate code more conveniently without bothering the underlying architecture of target processor.
Correct Answer: A
Question 12 Explanation: 
The code-optimization on intermediate code generation will always enhance the portability of the compiler to target processors. The main reason behind this is, as the intermediate code is independent of the target processor on which the code will be executed, so the compiler is able to optimize the intermediate code more conveniently without bothering the underlying architecture of target processor.

Leave a Reply

Your email address will not be published. Required fields are marked *