Calling Conventions
Rules for passing arguments and return values in registers/stack and who saves which registers.
Advanced
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.