COMPILER DESIGN

SEMANTIC ANALYSIS

TYPE CHECKING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The structure with three fields op, arg1 and arg2 is
A
Triples
B
Quadruple
C
Indirect triple
D
None
Explanation: 

Detailed explanation-1: -Quadruple is a structure that contains atmost four fields, i.e., operator, Argument 1, Argument 2, and Result. The triples have three fields to represent the three address codes. The field of triples includes the name of the operator, the first source operand, and the second source operand.

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