COMPILER DESIGN

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
A
make parsing and semantic analysis simpler.
B
improve error recovery and error reporting.
C
increase the chances of reusing the machine-independent code optimizer in other compilers.
D
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.