COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Usually the “Three address code” contains address two for the ____ and one for the result.
A
operand
B
operator
C
result
D
statement
Explanation: 

Detailed explanation-1: -The use of names for intermediate values allows three-address code to be easily rearranged which is convenient for optimization. Postfix notation does not have this feature. The reason for the term three-address code is that each statement usually contain three addresses, two for the operands and one for the result.

Detailed explanation-2: -The types of three address code are Assignment Statement(x = y op z and x = op y), While Statement, Switch Statement, Copy Statement, Unconditional Jump, Conditional Jump, Procedural call, Array Statement, and For Statement.

Detailed explanation-3: -Three Address Code is a form of an intermediate code. They are generated by the compiler for implementing Code Optimization. They use maximum three addresses to represent any statement. They are implemented as a record with the address fields.

Detailed explanation-4: -Three Address Code is a form of an intermediate code. They are generated by the compiler for implementing Code Optimization. They use maximum three addresses to represent any statement. They are implemented as a record with the address fields.

There is 1 question to complete.