TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
An intermediate code form can be a ____
|
syntax tree
|
|
post fix notation
|
|
three address code
|
|
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: -Quadruples is not the intermediate code form.
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: -Hence, one of the purposes of using intermediate code in compilers is to increase the chance of reusing the machine-independent code optimizer in other compilers.
There is 1 question to complete.