Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, this is 1 question with multiple parts. The answers are already given. However, I truly want to understand how to go about such problems.

Hi, this is 1 question with multiple parts. The answers are already given. However, I truly want to understand how to go about such problems. If its not too much to ask, I would appreciate anyone who can write down the steps to solving these problems. I thank you in advance

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Fill in the right-hand column of the following table to describe the processing of the irmovq instruction on line 4 of the object code in (Figure 1): Stage Fetch Generic irmova V, TB icode: ifun M1[PC] rA: B M 1[PC + 1] valC+ M 8[PC + 2] valp PC + 10 Specific irmovq $128, %rsp A B D valE+ 0 + valc E Decode Execute Memory Write back PC update F R[rB] + valE PC + valp G 1 2 3 4 5 6 0x000: 30820900000000000000 irmovq $9, %rdx 0x00a: 30f31500000000000000 irmovq $21, %rbx Ox014: 6123 subq %rdx, %rbx 0x016: 30148000000000000000 irmovq $128, %rsp 0x020: 40436400000000000000 rmmovq %rsp, 100(%rbx) Ox02a: a02f 1 pushq %rdx 7 0x02c: boof 8 OxO2e: 734000000000000000 je done Ox037: 804100000000000000 call proc 10 Ox040: | done: Ox040: 00 1 halt 12 Ox041: I proc: Ox041: 90 1 # subtract # Problem 4.13 # store # push # Problem 4.14 # Not taken # Problem 4.18 popq Xrax 9 ret 13 14 # Return What should be in position A? icode: ifun + M1[128]= 3:0 icode: ifun + M1[0x016]= 3:0 icode: ifun + M1[0x00F]= 3:0 O icode : ifun + M1[0x128]= 4:0 What should be in position B? rA:rB+ M1[17]=f:4 OrAirB+ M1[21]=f:4 rAirB+ M1[0x021]=f.4 rAirB M1[0x017]=f.4 What should be in position C? valc + M8[0x018]= 120 valc M8[0x01A]= 122 valC+ M8[0x018]= 128 valC+ M1Ox019]= 128 What should be in position D? valP+ 0x018 + 7 = 0x020 valp 0x016 + 11 = 0x020 valP+ 0x015 + 9 = 0x01F valP - Ox016 + 10 = Ox020 What should be in position E? valE+ 0 + 128 = 128 valE+ 2 + 128 = 130 valE+ 0 + 122 = 122 valE+ 1 + 120 = 122 What should be in position F? R[%rsp] + valE = 122 R[%rdx] + valE = 122 R[%rsp] + valE = 128 R[%rsp] + valE = 130

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions