Procedure call instructions
Procedure call: jump-and-link instruction
jal x1, ProcedureLabel
- Executed by caller
- Puts address of instruction after this one in x1 (ra) (return address)
- Jumps to target address of ProcedureLabel
Procedure return: jump-and-link register instruction
jalr x0, 0(x1)
- Executed by callee
- Like jal, but jumps to 0 + address in x1 (ra)
- No return address (x0 cannot be changed)
- Can also be used for unconditional jumps
If you want to change selection, open 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