Question: Given the following C program tmpVars.c and its ARM64 assembly version tmpVars.s, type in or copy the two into Raspberry Pi with Geany or text
Given the following C program tmpVars.c and its ARM64 assembly version tmpVars.s, type in or copy the two into Raspberry Pi with Geany or text editor. Use "gee g0 tmpe terminal and "gdb tmpa" in the other. Set a break point at main, list the source program in each, run them. Print out the contents of the main stack frame with " x/16xb$sp " command before running any line of code. Run a single line of code with next command, and then print out values of the variable and the stack frame. Verify the values of local variables and stack memory value with your explanation or comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
