Question
Assume that a RISC machine uses 5 register windows.
a) How deep can the process calls go before registers must be saved in memory? (That is, what is the maximum number of "active'' procedure calls that can be made before we need to save any registers in memory?)
b) Assume two more calls are made after the maximum value from part (a) is reached. How many register windows have to be saved to memory as a result?
c) Now assume that the most recently called procedure returns. Give details what occurs.
d) Now understand one more procedure is called. How many register windows require being stored in memory?