Skip to content

Miscellaneous

x86_64 Calling Convention

Function arguments are passed through registers in the following order:

Argument number Register
First RDI
Second RSI
Third RDX
Fourth RCX
Fifth R8
Sixth R9

Any additional arguments are pushed to the stack in reverse order.