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
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.