News for hackers. Stuff that matters.
Re:What happens before main() is executed in C and why is it... by ronsor on Friday May 04, 2018 @06:29PM (#16998929)
totally unportable and undefined behavior
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.
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