News for hackers. Stuff that matters.
Re:What happens before main() is executed in C and why is it... by kbumsik on Friday May 04, 2018 @07:57PM (#16999379)
I don't know much about AMD64 but if the arguments are passed to registers then how it is possible to retrieve argc/argv later, as other functions likely to touch registers?
Re:What happens before main() is executed in C and why is it... by saagarjha on Friday May 04, 2018 @08:04PM (#16999415)
They're pushed on to the stack if another function will touch them.