Re:What happens before main() is executed in C and why is it...
by dfox on Friday May 04, 2018 @06:35PM
(#16998979)
I have strong feeling that while this obviously works on i386 linux (and probably any unix for that matter) if it works on even amd64 it's just a pure coincidence.
[ Parent
| on HN ]
Re:What happens before main() is executed in C and why is it...
by colejohnson66 on Saturday May 05, 2018 @09:47AM
(#17001765)
It shouldn’t work on amd64 because the x64 calling convention puts the arguments in the registers first