News for hackers. Stuff that matters.
Re:What happens before main() is executed in C and why is it... by baruch on Friday May 04, 2018 @01:28PM (#16996381)
At least in gcc you can use constructor attribute to run code before main. I've seen this used to initialize modules and create a dependency tree of modules to initialize before main even starts.

There are no comments on this comment yet.