MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An intermediate code form can be a ____
A
syntax tree
B
post fix notation
C
three address code
D
all the above
Explanation: 

Detailed explanation-1: -Intermediate code can be represented in three forms, which are postfix notation, Syntax trees, Three address code.

Detailed explanation-2: -An intermediate code form of source program is an internal form of a program created by the compiler while translating the program created by the compiler while translating the program from a high –level language to assembly code(or)object code(machine code).

Detailed explanation-3: -For example: a = b + c * d; The intermediate code generator will try to divide this expression into sub-expressions and then generate the corresponding code. r being used as registers in the target program.

Detailed explanation-4: -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.