This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]