__main

Robert Spanton rob@xgoat.com
Thu Aug 29 11:25:00 GMT 2002


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



More information about the Gcc mailing list