This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc -g option does not work
- From: Long Li <codingc_2003 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Jan 2003 18:51:48 -0800 (PST)
- Subject: 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