455 views
1 votes
1 votes

Below is an execution trace of a program fragment for a computer with $512-byte$ pages. The program is located at address $1020,$ and its stack pointer is at $8192\:\:($the stack grows toward $0).$ Give the page reference string generated by this program. Each instruction occupies $4$ bytes $(1 \text{word})$ including immediate constants. Both instruction and data references count in the reference string.

  • Load word $6144$ into register $0$
  • Push register $0$ onto the stack
  • Call a procedure at $5120,$ stacking the return address
  • Subtract the immediate constant $16$ from the stack pointer
  • Compare the actual parameter to the immediate constant $4$ 
  • Jump if equal to $5152$

Please log in or register to answer this question.

Related questions

1 votes
1 votes
4 answers
2
admin asked Oct 26, 2019
722 views
A machine has $48-bit$ virtual addresses and $32-bit$ physical addresses. Pages are $8\: KB.$ How many entries are needed for a single-level linear page table?
0 votes
0 votes
0 answers
3