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]

Re: how to compile gcc



From: drizzle drizzle <drizzle76@gmail.com>
To: Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
CC: gcc@gcc.gnu.org
Subject: Re: how to compile gcc
Date: Sat, 20 Aug 2005 09:48:56 -0400

If you are objective is to debug gcc, then all the necessary setup is
already done...Check this documentation
 http://gcc.gnu.org/wiki/DebuggingGCC.

I have tried this method on wiki about GCC debugging. I am not sure about that and mail the procedure here to verify it, maybe someone of you could clarify for me. Thanks in advance.


Here goes the my procedure on GCC debugging.
1 Generate preprocessed source code wiht option -E and redirect to a file named a.c.expand.
2 Debug cc1 by GDB with the arguments "-c a.c.expand" to cc1


Is this a reasonable procedure to debug GCC?

Any suggestion and comments are highly appreciated!

dz


On 8/20/05, Rafael Ávila de Espíndola <rafael.espindola@gmail.com> wrote:
> http://gcc.gnu.org/install/configure.html
> look at --enable-checking
> and
> http://gcc.gnu.org/install/build.html
> There are more cflags...
>
> The gcc/Makefile.in is also a good reference :)
>
> > Thanks,
> >
> > -Jiang
>
>
> Rafael
>

Best Regards ---------------- Yao Qi Bejing Institute of Technology

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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