Calling convention
The agreement on where a function's arguments, return value and preserved registers live — the part of the ABI that lets code from different compilers call each other.
Thirty-two-bit x86 was a jungle: cdecl pushed everything on the stack and made the caller clean up, stdcall had the callee clean up and became the Win32 API standard, and fastcall came in several mutually incompatible flavours. x86-64 narrowed it to two camps. System V, used by Linux and macOS, passes the first six integer arguments in rdi, rsi, rdx, rcx, r8 and r9. Microsoft settles for four and also demands 32 bytes of shadow space on the stack.
The convention also splits registers into two kinds. Caller-saved registers may be trashed freely by the callee; callee-saved ones must be restored before returning. That line shapes register allocation in every function, and a mismatched declaration produces bugs that only surface as corrupted values much later.