GATE | GATE CS 2008 | Question 37
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
(A) I only
(B) II only
(C) III only
(D) I, II and III
Explanation: I is true as by using multiple register windows, we eliminate the need to access the variable values again and again from the memory. Rather, we store them in the registers.
II is false as register saves and restores would still be required for each and every variable.
III is also false as instruction fetch is not affected by memory access using multiple register windows.
So, only I is true.
Hence, A is the correct option.
Please comment below if you find anything wrong in the above post.
Quiz of this Question
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.