Question: Computer System You've been given the following code: callee: movslq %esi, %rsi add $1, %rsi movl $46, (%rdi, %rsi, 4) movl 4(%rdi, %rsi,4), %eax ret
Computer System

You've been given the following code: callee: movslq %esi, %rsi add $1, %rsi movl $46, (%rdi, %rsi, 4) movl 4(%rdi, %rsi,4), %eax ret caller: subq $48, %rsp movl %edi, fesi movl $23, (%rsp) movl $4, 4(%rsp) movl $10, 8(%rsp) movl $4, 12(%rsp) movl $3, 16(%rsp) movq %rsp, %rdi call callee add $48, %rsp ret Assume that %rsp = 400010 on entry to function caller, which was called with argument y=0. What is the value of %rsp when executing the first instruction of callee? You should enter the address as a decimal value and you may use an expression if it's useful. Into what memory location is 46 written in function callee? You should enter the address as a decimal value and you may use an expression if it's useful. What value is at address 3968? You should enter the address as a decimal value and you may use an expression if it's useful
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
