Is D the correct answer Using the MIPS subroutine linkage pr
Is D the correct answer?
Using the MIPS subroutine linkage protocol what is a return address? the address in the subroutine that gets control the address of the instruction that calls a subroutine the address of the instruction in the caller to which the subroutine returns control the address in the subroutine of the instruction that return control to the callerSolution
Answer: C
the address of the instruction in the caller to which the subroutine returns control
Explanation:
In MIPS Sub routine is a part of the code can be used many times at many locations in complete program. It involves caller and calle functions. When calling the subroutine, the program counter is in resumed state until the subroutine gets completed its execution. So, the return address of subroutine is saved into the stack. If the subroutine is used for second time, it retrieves the return address from the stack and pop from the stack using caller. So, the address of the instruction in the caller to which the sub routine returns control is the accurate answer.
Hence the option is C is correct.
Incorrect options A, B, D:
Explanation:
Options A, B, D are the not valid explanations for the return address of the subroutines, the return address is not control over the caller and calle function before executing the subroutines. When subroutine is called, address of the instruction is not the return address of the subroutines.
Hence, options A, B, D are incorrect.
