This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__main
- From: "Robert Spanton" <rob at xgoat dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Thu, 29 Aug 2002 19:25:08 +0100
- Subject: __main
Why is it that when i compile the following code (using the -S switch) under
windows, GCC outputs an assembly file containing the symbol "__main" (two
underscores) AND the symbol "_main" (one underscore) - whereas when i
compile it under unix or bsd, it only contains the symbol "_main" (one
underscore). Why do the unix and bsd versions not output the symbol
"__main"?
Code:
int main()
{
return 0;
}
Robert