Analyze the functions in the following code and complete the table
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Analyze the functions in the following code and complete the table

Problem 5 - Stack analysis (near call)

For reference read Intel manual Volume 1 Chapter 6   6.1-6.4

1. Compile and run the following code

2. Analyze the functions in the following code and complete the table.

 

1. Assume that both functA() and functB() reside in the same code segment. 

2. Use the debugger and respective commands to demonstrate the following:

a. Identify in the main() frame rsp, rbp and local variables before functA is called

b. Identify in functA() before functB is called 

i. Function arguments 

ii. Function local variables address 

iii. Return address

iv. Saved frame pointer or old RBP( saved RBP)

c. Identify which values will be on the stack at the exact moment before the first instruction of functB

d. Attach the screen captures that demonstrate a,b and c

Hint
Computer2a)A variable in programming is a value that can change based on external factors or data that has been supplied to the program. A program typically consists of data that it uses while running and instructions that tell the machine what to execute....

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.