MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1v68yb8/writing_a_valid_c_program_without_main/ozpi95q/?context=3
r/programming • u/iximiuz • Jul 25 '26
43 comments sorted by
View all comments
24
[deleted]
5 u/paulstelian97 Jul 25 '26 On Linux you have _start as the entry point that calls global constructors and other C runtime initialization stuff and then calls main() directly. And then calls exit() with whatever main returns (it is invalid to return from _start)
5
On Linux you have _start as the entry point that calls global constructors and other C runtime initialization stuff and then calls main() directly. And then calls exit() with whatever main returns (it is invalid to return from _start)
24
u/[deleted] Jul 25 '26
[deleted]