Created
August 2, 2019 21:46
-
-
Save leveled/b5a6678c4917d4b75b5edcfc07805266 to your computer and use it in GitHub Desktop.
x86/x86_64 calling conventions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x86 function calls: | |
parameters pushed last in first | |
x86 syscalls | |
eax -syscall number | |
ebx through ebp are used for parameters | |
return value is in eax | |
x86_64 syscalls | |
The kernel interface uses %rdi, %rsi, %rdx, %r10, %r8 and %r9. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment