Which one is the correct code to rturn from a non-leaf subroutine? Jmpl %i0, %g0
ID: 3695476 • Letter: W
Question
Which one is the correct code to rturn from a non-leaf subroutine? Jmpl %i0, %g0 jmpl %i7 + 4, %g0 jmpl %i7 + 8, %g0 jmpl %07 + 4, %g0, jmpl %07 + 8, %g0 none of the above. Which one is the correct code to return from a leaf subroutine? jmpl %i0, %g0 jmpl %i7 + 4, %g0 jmpl %i7 + 8, %g0 jmpl %07 + 4, %g0, jmpl %07 + 8, %g0 none of the above. First six arguments to a subroutine are passed through %o0 - %o5 %g0 - %g5 %I0 - %o7 all of the above none of the above The call.mul instruction is same as the ret ba. mul jmpl.mul, %o7 ba.mul, %o6 jmpl.mul, %i7 ta 0 The mapped registers (in and local) are saved to the stack when the current windows pointer (CWP) = windows invalid mask(WIM). This condition is known as the windows overflow buffer overflow stack overflow open subroutine closed subroutine leaf subroutineExplanation / Answer
1. The correct code to return from a non-leaf subroutine is jmpl %i0,%g0.
2. The correct code to return from a leaf subroutine is jmpl %07+8,%g0.
3. First six arguments to a subroutine are passed through %g0 - %g5.
4. The cal.mulinstruction is same as jmpl.mul,%i7.
5. The mapped registers are saved to the stack when the current windows pointer=windows invalid mask.
This condition is known as the Buffer Overflow.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.