Skip to content
Related Articles

Related Articles

GATE | GATE CS 2008 | Question 37

Improve Article
Save Article
  • Last Updated : 19 Nov, 2018
Improve Article
Save Article

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

Answer: (A)

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!