in Compiler Design retagged by
532 views
0 votes
0 votes
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
in Compiler Design retagged by
by
532 views

2 Comments

2?
0
0
given is 4 but i think it5
0
0

1 Answer

2 votes
2 votes

Is it 4 ? 

4 Comments

here q*r is used 2 times rt so why u used same variable ?
0
0
I think it's because in static single assignment you cannot reassign something twice , but you can reuse it again if needed in RHS like t1 . Here you are not reassigning t1 again,  but using it again . Thanks.
1
1
yes true
0
0

@ In general Static Single Assignment means for each and every variable and for every computation of the program,we should assign a temporary variable right?

So then total temporary variables should be 8 right?

0
0

Related questions