Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Come to think of it, I don't think I've used any platform where main() is the real entry point to the executable. On Linux the real entry point is _start, all of the bare-metal embedded stuff I've touched does a whole bunch of hardware setup in crt0 before it calls main(), etc...


main() is the entry point function in newer OS X versions. Why ship crt0 in everything when you can put it in dyld?


crt0 would still get linked into static binaries in OSX, I presume.





Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: