The use of multiple register windows with overlap causes a reduction in the…
2009
The use of multiple register windows with overlap causes a reduction in the number of memory accesses for:
I. Function locals and parameters
II. Register saves and restores
III. Instruction fetches
Answer: D. I and II only — Correct answer: I and II only Function locals and parameters: overlapping register windows allow values to be passed and kept in registers during procedure…
- A.
I only
- B.
II only
- C.
III only
- D.
I and II only
Attempted by 73 students.
Show answer & explanation
Correct answer: D
Correct answer: I and II only
Function locals and parameters: overlapping register windows allow values to be passed and kept in registers during procedure calls.
Register saves and restores: fewer registers need to be written to or read from memory across calls.
Instruction fetches: these depend on the instruction memory/cache path, not on register-window overlap.
Therefore, statements I and II are correct, while statement III is not.
A video solution is available for this question — log in and enroll to watch it.