Question: This is Machine Architecture and Organization course. please answer the questions precisely and circle the answer for me. Thanks An ARC program calls the subroutine

This is Machine Architecture and Organization course. please answer the questions precisely and circle the answer for me. Thanks
An ARC program calls the subroutine foo, passing it three arguments, a, b and c. The subroutine has two local variables, mand n. Show the position of the stack pointer and the contents of the relevant stack elements for a stack-based calling convention at the points in the program shown below. Note that subroutine foo does not return anything. a. Just before executing the call at label x b. When the stack frame for foo is completed C. Just before executing the ld at label z (i.e. when the calling routine resumes) ! Push the arguments a, b and c : call foo : ld &r1, fr2 foo: ! subroutine starts here y : jmpl 8r15 + 4, r0 An ARC program calls the subroutine foo, passing it three arguments, a, b and c. The subroutine has two local variables, mand n. Show the position of the stack pointer and the contents of the relevant stack elements for a stack-based calling convention at the points in the program shown below. Note that subroutine foo does not return anything. a. Just before executing the call at label x b. When the stack frame for foo is completed C. Just before executing the ld at label z (i.e. when the calling routine resumes) ! Push the arguments a, b and c : call foo : ld &r1, fr2 foo: ! subroutine starts here y : jmpl 8r15 + 4, r0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
