MIPS Architecture and Procedure Calls
Classified in Computers
Written on in
English with a size of 3.74 KB
What is a Basic Block?
A basic block is a sequence of instructions with no embedded branches (except at the end) and no branch targets (except at the beginning). A compiler identifies basic blocks for optimization. An advanced processor can accelerate the execution of basic blocks.
Six Steps Involved in Procedure Calling
- Place parameters in registers.
- Transfer control to the procedure.
- Acquire storage resources.
- Perform the desired operation.
- Place the result in a register for the caller.
- Return to the point of origin.
Register Saving Responsibilities
Between the caller and callee, the responsibility for saving registers is as follows:
- Temporary registers (
$t*): Can be overwritten by the callee. - Saved temporary registers (
$s*): Saved and restored by the