Procedure / function calling
- Place parameters in registers
a0
to a7
- Transfer control to procedure (
jal ra, Proc
)
- Acquire storage for procedure (
addi sp, sp, -…
)
- Perform procedure's operations
- Place result in register
a0
for caller
- Free storage of procedure (
addi sp, sp, +…
)
- Return to place of call (
jalr zero, 0(ra)
)
If you want to change selection, open original toplevel document below and click on "Move attachment"
Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details