COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An intermediate language should be
A
Close to target machine
B
Machine independent
C
All operators of high-level language supported
D
All of the other options
Explanation: 

Detailed explanation-1: -Intermediate code eliminates the need for a new full compiler for every unique machine by keeping the analysis portion the same for all the compilers. The second part of the compiler, synthesis, changes according to the target machine.

Detailed explanation-2: -Examples of intermediate-level languages are assembly languages, such as PL/I, BASIC, AND Fortran.

Detailed explanation-3: -Syntax trees can be used as an intermediate language. Postfix notations, three address codes (quadruples) can be used as an intermediate language.

There is 1 question to complete.