12 ms·
FWIW, in most architectures the first few function arguments get passed in registers. But so many of today’s programmers grew up with 32-bit x86, which has a pa
by dcrazy 2mo ago
FWIW, in most architectures the first few function arguments get passed in registers. But so many of today’s programmers grew up with 32-bit x86, which has a paucity of registers, that they mentally shortcut to “every argument gets passed on the stack”.
Nowadays, with x64 and AArch64, the first several arguments will be passed in integer or floating-point registers.