COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Choose the properties of three address code from the given options
A
Has at most 2 operators
B
assignment operator is mandatory
C
Has maximum of 3 operands
D
all the mentioned
Explanation: 

Detailed explanation-1: -What are the types of three address code? 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-2: -Three address code is a sort of intermediate code that is simple to create and convert to machine code. It can only define an expression with three addresses and one operator. Basically, the three address codes help in determining the sequence in which operations are actioned by the compiler.

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.