INTRODUCTION TO COMPILER DESIGN
OVERVIEW OF COMPILERS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
One of the purposes of using intermediate code in compilers is to
|
make parsing and semantic analysis simpler.
|
|
improve error recovery and error reporting.
|
|
increase the chances of reusing the machine-independent code optimizer in other compilers.
|
|
improve the register allocation
|
Explanation:
Detailed explanation-1: -Answer: d. to increase the chances of re-using the machine-independent code optimizer in other compilers. Explanation: After semantic analysis, the intermediate code increases the chances of reusing the machine-independent code optimizer in other compilers.
Detailed explanation-2: -Because translation appears to inherently require analysis and synthesis. Word-for-word translation does not work.
There is 1 question to complete.