Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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. 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

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

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions