If subroutine A calls subroutine B

If subroutine A calls subroutine B



A. Subroutine B must preserve $ra.
B. Neither subroutine needs to preserve $ra; it is automatically saved.
C. Subroutine A is a non-leaf subroutine.
D. Subroutine A must preserve $ra.
E. There is no convention as long as the code works.
F. No stack space is needed.
G. Subroutine A is a leaf routine.

Answer:


C. Subroutine A is a non-leaf subroutine.
D. Subroutine A must preserve $ra.


Learn More :