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.