retagged by
4,410 views
2 votes
2 votes
The minimum number of variables required in 3 address code of the given expression are:______

a * b * c + d - a + e * f - g + h

Order of precedence: * > + > - ; with * as left associative and +,- as right associative.
retagged by

1 Answer

1 votes
1 votes

@Sambhrant Mayura

The question is asking only about the "MINIMUM number of variables for 3 Address Code". It is NOT asking the "Static Single Assignment" of 3 Address Code. Hence the variables on LHS can be repeated, which cannot be done in Static Single Assignment. You can refer this link.

I hope you doubt is clear by now.

 

Related questions

0 votes
0 votes
1 answer
2
thor asked Nov 17, 2016
1,089 views
3 votes
3 votes
1 answer
3
sh!va asked Jun 23, 2016
15,039 views
Three address code invlovesexactly 3 addressesat most 3 addressesat least 3 addressesNo unary opeartors
1 votes
1 votes
1 answer
4
Xylene asked Aug 29, 2017
380 views
In 3 address code format can LHS be repeated ?For eg if we have expression a + b*c then t1 = a t2 = b*c t1 = t1 + t2 or t3 = t1 + t2 which one is correct?