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