Why does the x86-64 System V calling convention pass args in registers instead of just the stack?
instead of put the first 6 arguments in registers just to move them onto the stack in the function prologue? I was looking at some code that gcc generated and that’s what it always did. Then you forgot to enable optimization. gcc -O0 spills everything to memory so you can modify them with a debugger … Read more