• edited by
27,055 views
48 48 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}$

3 Answers

Best answer
51 51 votes
  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
8 8 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.
4 4 votes
Answer:
Position:
Show:

Related questions

92 92 votes
6 answers 6 answers
28.8k
28.8k views
Kathleen asked Sep 12, 2014
28,792 views
Which of the following is/are true of the auto-increment addressing mode?It is useful in creating self-relocating codeIf it is included in an Instruction Set Architecture...
74 74 votes
4 answers 4 answers
35.9k
35.9k views
Kathleen asked Sep 12, 2014
35,948 views
Which of the following are NOT true in a pipelined processor?Bypassing can handle all RAW hazardsRegister renaming can eliminate all register carried WAR hazardsControl h...
58 58 votes
6 answers 6 answers
25.1k
25.1k views
Kathleen asked Sep 12, 2014
25,125 views
Which of the following statements about synchronous and asynchronous I/O is NOT true?An ISR is invoked on completion of I/O in synchronous I/O but not in asynchronous I/O...
32 32 votes
3 answers 3 answers
15.5k
15.5k views
gatecse asked Sep 21, 2014
15,489 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...