GCC x86-64 Calling Conventions Explained
The x86-64 architecture on Linux follows the System V AMD64 ABI calling convention. Understanding this is essential when writing assembly, optimizing code, debugging, or interfacing with C libraries. Register usage for arguments Integer and pointer arguments use these registers in order: RDI — first argument RSI — second argument RDX — third argument RCX —…
