Hacker News new | ask | show | jobs
by makomk 4456 days ago
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...
1 comments

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.