NTA UGC NET DEC-2022 Paper-2
October 10, 2023Code-Optimization
October 10, 2023Code-Optimization
Question 6 |
Some code optimization are carried out on the intermediate code because:
they enhance the probability of the compiler to other target processors | |
program analysis is more accurate on intermediate code than on machine code | |
the information from data flow analysis cannot otherwise be used for optimization | |
the information from the front end cannot otherwise be used for optimization |
Question 6 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 the target processor.
Correct Answer: A
Question 6 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 the target processor.
Subscribe
Login
0 Comments