3 ms·
Sorry, you are right. I don't think compilers know that main() is really the entrypoint, since there is some code in the C runtime that runs before main. If co
by titzer 9y ago
Sorry, you are right.
I don't think compilers know that main() is really the entrypoint, since there is some code in the C runtime that runs before main. If compilers treated main like the program entrypoint, then my original comment would stand.
- 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.)