Question: A. What value does rfun store in the callee-saved register%rbx? B. Fill in the missing expressions in the C code shown above. C. What does

 A. What value does rfun store in the callee-saved register%rbx? B.

A. What value does rfun store in the callee-saved register%rbx?

B. Fill in the missing expressions in the C code shown above.

C. What does rfun(3,4)return in%rax?

Problem 9. (8 points): Extra Credit Consider a C function having the general structure: long int rrun(long int x, long int y) long init nx long int ny - longint ry - 0 return 1 IV - rfun (nx, nyl; return This Coude yields the following y86 64 machine code: fun: irmova remove anda js $0, Srax Ardi, rdx Srd, rdx .LB .LB: pushg Srbx renoversi, Srbx irmov -1, "rdx adda rdx, si adda rdx, Erdi call rtun addq Srba, rax pop ret The questions on the next page are about these pieces of code, Problem 9. (8 points): Extra Credit Consider a C function having the general structure: long int rrun(long int x, long int y) long init nx long int ny - longint ry - 0 return 1 IV - rfun (nx, nyl; return This Coude yields the following y86 64 machine code: fun: irmova remove anda js $0, Srax Ardi, rdx Srd, rdx .LB .LB: pushg Srbx renoversi, Srbx irmov -1, "rdx adda rdx, si adda rdx, Erdi call rtun addq Srba, rax pop ret The questions on the next page are about these pieces of code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!