gcc -g option does not work

Long Li codingc_2003@yahoo.com
Fri Jan 31 02:51:00 GMT 2003


Hi,

I have some problem with the -g option of gcc. I am
using gcc-3.0.4 MIPS cross-compiler on Redhat 7.1.
This is what I did:

 gcc -g -c t.c
 
and gcc -c t.c 

The t.o files are of the same size.

However, if I use the gcc-2.8.1, an old version, the
size are pretty different. 

I need to turn on the -g option for the new compiler
since I have to use the objdump to see the disassambly
code with source code. However, it works on gcc-2.8.1
but not on gcc-3.0.4 due to the above problem. Could
you give me some help or suggestions?


Thanks a lot!


Long


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the Gcc-help mailing list