





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






28 + 12 = 40
20 + 12 = 32
virtual address physical address page fault?
DE8269AC
DE
DE
35CF
Virtual Address:
int Test(int a) { int x = 33; int y; y = a + x; x = Solve(a, x, y) return x; }
FP -> Caller’s return value Caller’s locals
Caller of Test’s AF ends here RA of caller FP of caller a SP -> Return value
Test’s AF starts here
1000 swi^505 1004 beq $3, $0, L 1008 beq $3, $7, L 1012 jal Search 1016 L1: addi $2, $2, - 1020 andi^ $2, $2, 3 1024 swi 505 1028 beq $3, $0, L 1032 beq $3, $7, L 1036 jal Search 1040 L2: addi $2, $2, 2 1044 andi $2, $2, 3 1048 swi 505 1052 beq $3, $0, L 1056 beq $3, $7, L 1060 jal Search 1064 L3: addi $2, $2, - 1068 addi $2, $2, 2 1072 andi $2, $2, 3 1076 swi 505 1080 addi $2, $2, 2 1084 andi $2, $2, 3 1088 L4:
st
nd
rd
th
B
B