in Compiler Design
413 views
0 votes
0 votes
what will be the minimum number of temporary variables required in case of single static assignment?

(a + (b*c)) - (b*c)
in Compiler Design
413 views

1 comment

6..?
0
0

2 Answers

1 vote
1 vote

t1 = b * c; 

t2 = a + t1;

t3 = t2 - t1; 

So, total 3 temporary variables are required. 

0 votes
0 votes
i think 2.
t1 = b*c;
t2  = a
t2= t2+t1
t2 = t2-t1

Correct me if i am wrong ?

Related questions