- #1
fran1942
- 80
- 0
Hello, I am having some trouble with the following set of questions.
I include them along with my answers.
Would anyone be able to confirm if I am correct here ?
Thanks kindly for any help.
Suppose a RISC machine uses overlapping register windows for passing parameters between procedures. The machine has 298 registers, and each register window has 22 registers, of which 10 are global registers and 10 are local registers. Answer the following:
a) How many registers would be available for use by input parameters?
My attempted answer: 1
b) How many registers would be available for use by output parameters?
My attempted answer: 1
c) How many register windows would be available for use?
My attempted answer: 13
d) By how much would the current window pointer (CWP) be incremented at each procedure call ?
My attempted answer: By 12.
I include them along with my answers.
Would anyone be able to confirm if I am correct here ?
Thanks kindly for any help.
Suppose a RISC machine uses overlapping register windows for passing parameters between procedures. The machine has 298 registers, and each register window has 22 registers, of which 10 are global registers and 10 are local registers. Answer the following:
a) How many registers would be available for use by input parameters?
My attempted answer: 1
b) How many registers would be available for use by output parameters?
My attempted answer: 1
c) How many register windows would be available for use?
My attempted answer: 13
d) By how much would the current window pointer (CWP) be incremented at each procedure call ?
My attempted answer: By 12.
Last edited: