B.2 Calling Convention
| Purpose | Registers |
|---|---|
| Arguments (1-8) | a0-a7 |
| Return value | a0 |
| Callee-saved | s0-s11, ra |
| Stack pointer | sp (16-byte aligned) |
Additional arguments beyond 8 are passed on the stack.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
| Purpose | Registers |
|---|---|
| Arguments (1-8) | a0-a7 |
| Return value | a0 |
| Callee-saved | s0-s11, ra |
| Stack pointer | sp (16-byte aligned) |
Additional arguments beyond 8 are passed on the stack.