Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fill in the right-hand column of the following table to describe the processing of the call instruction on line 9 of the object code in
Fill in the right-hand column of the following table to describe the processing of the call instruction on line 9 of the object code in (Figure 1): Stage Part A Fetch Generic call Dest icode: ifun + M1[PC] valC+M 8[PC + 1) valP+ PC + 9 Specific call 0x041 B What should be in position A? Decode valB+ R[%rsp] valE+ valB + (-8) M8[valE] + valp R[%rsp] + vale PC + valc Execute Memory Write back PC update icode: ifun+ M2[0x037]= 8:0:0:0 icode: ifun+ M2[0x041]= 0:8:0:0 icode: ifun + M1[0x041]= 8:0 icode: ifun + M1[0x037]= 8:0 I Submit Request Answer Part B What should be in position B? O valC+ M8[0x038]=0x041 valC+ M2[0x038]= 0x041 valC+M8[0x037]= 0x041 valC+ M2[0x037]= 0x041 Figure Submit Request Answer 1 of 1 > 1 Part C 2 3 4 What should be in position C? 5 6 7 8 9 10 11 Ox000: 30820900000000000000 irmova $9, %rdx Ox00a: 30f31500000000000000 irmovq $21, %rbx Ox014: 6123 subq %rdx, %rbx Ox016: 30f48000000000000000 irmovq $128.%rsp Ox020: 40436400000000000000 rmmovq %rsp, 100(%rbx) Ox02a: a02f 1 pushq %rdx Ox02c: boof 1 popa rax OxO2e: 734000000000000000 1 je done 0x037: 804100000000000000 1 call proc Ox040: | done: Ox040: 00 1 halt Ox041: | proc: Ox041: 90 . ret 1 # subtract # Problem 4.13 # store # push # Problem 4.14 # Not taken # Problem 4.18 valP+ 0x037 + 10 = 0x041 valP+ 0x037 + 9 = 0x040 valP+ 0x040 + 9 = 0x049 12 13 # Return valP+ 0x040 + 8 = 0x048 14
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started