This is the mail archive of the gcc-help@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]

gcc -g option does not work


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


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