COMPILER DESIGN

SEMANTIC ANALYSIS

TYPE CHECKING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The three address code can be represented in
A
Quadruple
B
Indirect triple
C
Triples
D
All the above
Explanation: 

Detailed explanation-1: -The three address code can be represented in two forms: quadruples and triples.

Detailed explanation-2: -The triples have three fields to implement the three address code. The field of triples contains the name of the operator, the first source operand and the second source operand. In triples, the results of respective sub-expressions are denoted by the position of expression.

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.

There is 1 question to complete.