Skip to content
UPEEC

Calling Conventions

Rules for passing arguments and return values in registers/stack and who saves which registers.

Advanced
Comments 0

ARM AAPCS passes the first four arguments in r0–r3; x86-64 System V uses rdi, rsi, rdx, rcx, r8, r9. Matters when mixing C and assembly.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.