3 ms·
Those are not actually the same. There are several differences, but the most obvious one is that the standard ABI on x86-64 Linux passes integer parameters in t
by umanwizard 7y ago
Those are not actually the same. There are several differences, but the most obvious one is that the standard ABI on x86-64 Linux passes integer parameters in the following order: rdi, rsi, rdx, rcx, r8, r9.
I noticed this immediately the first time I tried reading some Windows disassembly, as “rdi rsi rdx” is very thoroughly burned into my brain...
- gpm 7y agoDidn't mean to imply that they are the same ABI, sorry. Just that they're both "What's commonly known as the C ABI".
- umanwizard 7y agoMy bad for misunderstanding you!