Question: CS2253 Run-time Stack & Function Calls In-Class Exercise: (Exercise 14.15) The following C program is compiled into LC-3 machine language and loaded into address x3000

CS2253 Run-time Stack & Function Calls In-Class Exercise: (Exercise 14.15) The following C program is compiled into LC-3 machine language and loaded into address x3000 before execution. Not counting the JSRs to library routines for I/O, the object code contains three JSRs (one to function f, one to g, and one to h. Suppose the addresses of the three JSR instructions are x3102, x3301, x3304. And suppose the user provides 4 20 10 as input values. Draw a picture of the run-time stack, providing the contents of the locations, if possible, for the functions main and f, when the program is about to return from function f. What happens to the run-time stack of g? Assume the base of the run-time stack is location xEFFF include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
