3 ms·
> I don't think compilers know that main() is really the entrypoint Yes they do. > since there is some code in the C runtime that runs before main So? From t
by tom_mellior 9y ago
> I don't think compilers know that main() is really the entrypoint
Yes they do.
> since there is some code in the C runtime that runs before main
So? From the point of view of the C standard, main is the entrypoint to the C code in the program the compiler is asked to compile.
(Edited to add: This particular example program is in C++, but whatever.)