4,050 views
2 votes
2 votes
Please someone explain me what is Register Spilling by giving example

1 Answer

8 votes
8 votes

spilling means intermediate result stored into a temporary memory location.

X=(A+B)*(C+D)  

lets see this execution:

load A

add B

store T                   ( intermediate result stored into a temporary memory T)  SPILL

load C

add D

mul T

store X

Related questions

0 votes
0 votes
0 answers
2
Mayank Gupta 3 asked Dec 15, 2018
133 views
Give an example where register renamimg helps in eliminating the hazards
0 votes
0 votes
1 answer
4
eyeamgj asked Oct 12, 2018
335 views
MOV R1 #23 HOW MANY REGISTER REFERENCES ARE REQUIRED?