in CO and Architecture edited by
19,172 views
39 votes
39 votes

The use of multiple register windows with overlap causes a reduction in the number of memory accesses for:

  1. Function locals and parameters

  2. Register saves and restores

  3. Instruction fetches

  1. $\text{I}$ only
  2. $\text{II}$ only
  3. $\text{III}$ only
  4. $\text{I}, \text{II}$ and $\text{III}$
in CO and Architecture edited by
19.2k views

4 Comments

@tuhin

in order to store the function values in registers in has to access the memory

so register saves requires access to memory

am i right in my understanding?
0
0

Thank you @Tuhin Dutta, the explanation was very helpful.

0
0
Thanks for sharing the link, it is really helpful
0
0

3 Answers

41 votes
41 votes
Best answer
  1. Functions locals and parameters
    this is true because overlapped registers eliminates the need for memory accesses. we here got to use registers instead.
     
  2. Register saves and restores
    this is false bc we need to see where memory accesses are reduced here before also we were using register as it says Register saves... later also (i.e. after using multiple register windows) registers will are referred. So NO memory accesses are reduced here.
     
  3. Instruction fetches
    it has nothing to do with reduction in memory accesses.

Hence, option (A) is correct.

edited by

4 Comments

what's the answer in the answer key to the problem.
0
0

@Arjun sir @Bikram sir

doesn't option B means register values save & restore ? Because we know , during subroutine CALL & RETURN, we save PSW ,PC & some other resgiter values used by calling program to memory... 

​​​​So both A & B should be true... 

1
1
most of the questions from the 2008 paper of COA were somewhat from untouched topics…
1
1
4 votes
4 votes
by

3 Comments

Can't understand ..plz explain
1
1
Never  heard about this topic earlier...

Thank You so much sir. It helped a lot.
1
1
Option A is correct

The use of multiple register window with overlap cause a reduction in number of memory access for function local and parameters because overlapped register eliminate the need of memory register..
0
0
3 votes
3 votes
→ I is true because when we make a function call there are some input registers and some output registers. If function F() is calling function G(), we can make the caller function F()'s output registers the same as the called procedure G()'s input registers this is done using overlapping register windows.This will reduce the memory accesses so that F()'s output need not be put into memory for G() to access again from memory.
→ 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.
Answer:

Related questions