GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 37

Benefits of overlapping register windows

Computer Organization & Architecture · Instructions & Addressing Modes · Full GATE CSE 2008 paper

GATE 2008, Q37 2 marks · MCQ
Report issue

Instructions & Addressing Modes

Question 37, GATE 2008: Overlapping multiple register windows reduce memory accesses for which items? I: function locals and parameters. II: register saves and restores. III: instruction fetches.

(A) I only
(B) II only
(C) III only
(D) I,II,III
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. A function’s locals and parameters can stay in its register window instead of memory, reducing I.
2. Overlap exposes caller arguments as callee inputs, and window rotation avoids many explicit saves/restores, reducing II.
3. Eliminating save/restore instructions also removes their instruction fetches, reducing III. Therefore all three are benefits, D. Overflowing the available windows still requires spills, so the reduction is not elimination of all memory traffic.

Original paper, page 7