Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Show the contents of %eax immediately after finishing the execution of .f2. === .f1: pushl %rbp movl %rsp, %rbp subl $4, %rsp movl $0, -4(%rbp)

Show the contents of %eax immediately after finishing the execution of .f2. === .f1: pushl %rbp movl %rsp, %rbp subl $4, %rsp movl $0, -4(%rbp)

.L2: movl -4(%rbp), %rax cmpl 8(%rbp), %rax jl .L5 jmp .L3

.L5: decl 8(%rbp) movl 12(%rbp), %rdx leal -4(%rbp), %rax addl %rdx, (%rax) jmp .L2

.L3: movl 8(%rbp), %rax leave ret

.f2: pushl %rbp movl %rsp, %rbp pushl $3 pushl $19 call .f1 addl $8, %rsp leave ret

=== Sol: %eax =

Can you help me with eax will be equal to what ??

(computer system language ) ASSEMBLY 64 system

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

The models used to analyse different national cultures.

Answered: 1 week ago

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago