COMPILER DESIGN

SEMANTIC ANALYSIS

TYPE CHECKING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
For the three address code T1=uminus C. What will be arg2 for the quadruple
A
C
B
Uminus
C
T1
D
Blank
Explanation: 

Detailed explanation-1: -The assignment statement d:= (a-b) + (a-c) + (a-c) can be translated into the following sequence of three address code: t:= a-b. u:= a-c. v:= t +u.

Detailed explanation-2: -To implement the three address codes, the quadruples have four fields. The name of the operator, the first source operand, the second source operand, and the result are all contained in the quadruple field.

There is 1 question to complete.