For each function call, show the contents of the stack after the function call is made. Assume
Question:
For each function call, show the contents of the stack after the function call is made. Assume the stack pointer is originally at address 0x7ff ff ff c, and follow the register conventions as specified in Figure 2.11.
Preserved ..................................................................................Not preserved
Saved registers: $s0–$s7 ................................................Temporary registers: $t0–$t9
Stack pointer register: $sp .............................................Argument registers: $a0–$a3
Return address register: $ra .......................................Return value registers: $v0–$v1
Stack above the stack pointer ..........................................Stack below the stack pointer
Step by Step Answer:
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy