Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the C as well as disassembled code below: int main(int argc, char **argv) long x=3 , y=9 , z=0 ; z = top

image text in transcribed

1. Consider the C as well as disassembled code below: int main(int argc, char **argv) long x=3 , y=9 , z=0 ; z = top ( x, y ); return z; long top (long x,long y) i x=x+y; return leaf (x,y); long leaf (long y,long z) f z=y-z; return z; 1 00000000004004d6 : 6 4004dd: 7 4004e0: 8 4004e5: 9 4004ea: %rsi, %rdi 48 01 f7 b8 00 00 00 00 e8 ec ff ff ff f3 c3 add mov $0x0 , %eax callg 4004d6 repz retq 10 00000000004004ec
: 11 4004ec: 12 4004f1: 13 4004f6: 14 4004fb: 15 400500: mov $0x3 , %esi mov $0x3 , %edi mov $0x0,%eax callg 4004dd repz retq be 09 00 00 00 bf 03 00 00 00 b8 00 00 00 00 f3 c3 Fill the table with appropriate values. See Figure.27 in page 243 as well as the Practice problem 3.32 of page 244-245 for reference ine number! PC Instruction|% rdi % rsil % rax| 4fb call % rs * % rsp Description x7fffffffe82 all top(x 1. Consider the C as well as disassembled code below: int main(int argc, char **argv) long x=3 , y=9 , z=0 ; z = top ( x, y ); return z; long top (long x,long y) i x=x+y; return leaf (x,y); long leaf (long y,long z) f z=y-z; return z; 1 00000000004004d6 : 6 4004dd: 7 4004e0: 8 4004e5: 9 4004ea: %rsi, %rdi 48 01 f7 b8 00 00 00 00 e8 ec ff ff ff f3 c3 add mov $0x0 , %eax callg 4004d6 repz retq 10 00000000004004ec
: 11 4004ec: 12 4004f1: 13 4004f6: 14 4004fb: 15 400500: mov $0x3 , %esi mov $0x3 , %edi mov $0x0,%eax callg 4004dd repz retq be 09 00 00 00 bf 03 00 00 00 b8 00 00 00 00 f3 c3 Fill the table with appropriate values. See Figure.27 in page 243 as well as the Practice problem 3.32 of page 244-245 for reference ine number! PC Instruction|% rdi % rsil % rax| 4fb call % rs * % rsp Description x7fffffffe82 all top(x

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

Does it use a maximum of two typefaces or fonts?

Answered: 1 week ago