3 ms·
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 o
by makomk 13y 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...
- astrange 13y agomain() is the entry point function in newer OS X versions. Why ship crt0 in everything when you can put it in dyld?