Open In App

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

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. 
 
 

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :