Keyboard shortcuts

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

A.2 Calling Convention

PurposeRegisters
Arguments (1-6)rdi, rsi, rdx, rcx, r8, r9
Return valuerax
Caller-savedrax, rcx, rdx, rsi, rdi, r8-r11
Callee-savedrbx, rbp, r12-r15

Additional arguments beyond 6 are passed on the stack.