in MIPS which registers should be preserved on stack to prevent data loss. (T-S-A-V-RA REGISTERS)
in MIPS which registers should be preserved on stack to prevent data loss. (T-S-A-V-RA
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to my MIPS reference sheet, the following registers are callee-saves (have to be preserved by the called function) while the rest are caller-saves (aren’t required to be preserved by a called function):
$s0 - $s7(registers 16-23), the saved temporaries$gp(register 28), the global pointer$sp(register 29), the stack pointer$fp(register 30), the frame pointer$rp(register 31), the return address(Note,
$rpis listed as not saved in other versions of the cheat sheet.)Source: Computer organization and design