How can I get rid of __main ?

2005-05-27 Thread Monika Chaddha
Hi All, When I compile the following code (using the -S switch) under windows, GCC outputs an assembly file containing the symbol "__main" (two underscores) Code: int main() { return 0; } The reason I know that on some systems, gcc inserts a call to __main() at the start of the code that it gene

Re: How can I get rid of __main ?

2005-05-27 Thread Nathan Sidwell
Monika Chaddha wrote: When I generate relocatable file (*.o) of (*.s) file then the disassembly of 'jal __main" does not display properly in GDB disassmebler. It displays as "jal 0x0" because __main linked only during linking process. why is this a problem? You'll notice it happens for all func