retagged by
571 views
0 votes
0 votes
$\text{What is three address code representation of this ?}$

-a+b|c^d^e*f|g
retagged by

1 Answer

1 votes
1 votes
$^$ :Bitwise exclusive OR.

$|$ :bitwise inclusive OR.

$t1$=$e*f$

$t2=-a+b$

$t3$ $=$ $c$ $^$ $d$

$t4=t3$ $^$ $t1$

$t5=t2|t4$

$t6=t5|g$

NOTE: exclusive OR has higher precedence than bitwise inclusive OR in C.

Related questions

0 votes
0 votes
2 answers
1
92komal asked Dec 22, 2017
2,411 views
Consider the following statements:S1 : Three-address code is a linearized representation of syntax tree.S2 : The syntax tree not depicts the natural hierarchical structur...
1 votes
1 votes
1 answer
2
Nihal Singh asked Oct 4, 2021
1,497 views
Hi Everyone,For this the Given Answer is 5, I got 4. I am now confused about how the 3 address code is generated here.
0 votes
0 votes
1 answer
3
thor asked Nov 17, 2016
1,093 views