The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
58 views

asked in Compiler Design by Active (1k points) | 58 views

1 Answer

0 votes
Static single assignment means assignment to register can be done only one time-

a(temp3) = b(temp1) + c(temp2);

c(temp5) = a + x(temp4);

d(temp6) = b + c;

b(temp7) = a + x;

total 7 variables are required.
answered by Loyal (5.6k points)
0
temp5 and temp7 are same. Do they need separate register allocation?
0
@MiNiPanda,Shouldn't be assignment of each variable unique? In SSA every definition gets its own version.
0
but answer given is 6

Related questions

0 votes
0 answers
1
asked Nov 15 in Compiler Design by eyeamgj Loyal (6.3k points) | 24 views


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

44,240 questions
49,723 answers
163,933 comments
65,839 users