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

asked in Compiler Design by Junior (675 points) | 55 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 Active (3.8k 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


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

40,976 questions
47,609 answers
146,779 comments
62,342 users