Question: Note: choice b was selected but not necessarily the right answer Please provide explanation to the correct answer if you can. We have Function callee

 Note: choice b was selected but not necessarily the right answer

Please provide explanation to the correct answer if you can. We have

Note: choice b was selected but not necessarily the right answer

Please provide explanation to the correct answer if you can.

We have Function callee is called by caller as below left and there assembly code on the right: caLLer: push mov sub mov mov mov mov mov mov %eax , %edi call 0x4004d6 mov %eax,-0x4(Xrbp) shll $0x2,-0x4C%rbp) nop leaveq retq %rbp %rsp , %rbp $0x18,%rsp %edi,-0x14(%rbp) %esi ,-0x18(%rbp) -0x18(Xrbp),%edx -0x14(Xrbp), %eax %edx, %esi void caller(int x, int y) int z; callee(x,y); z = return; int callee(int x, int callee: push %rbp mov %rsp, %rbp mov %edi ,-0x40%rbp) mov %esi ,-0x8(Xrbp) mov -0x40%rbp) ,%eax cmp -0x8(Xrbp) ,%eax jle x4004ed mov -0x4(%rbp), %eax jmp Ox4004f0 mov -0x8(Xrbp), %eax pop %rbp retq if (x>y) return x; eLse return y

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 Databases Questions!