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


On Friday 19 August 2005 20:26, Jiang Long wrote:
> Hello,
>
> I 'd like to dig into gcc internals, and would like to compile it with -g.
>
> I can't find any document on how to do that? I tried
>
> make BOOT_CFLAGS=-g CFLAGS=-g,
>
> but it still will add '-O2' later on.
>
> Any documentation on how GCC is compiled? what are the stages of the
> compilation?
yes,
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

Attachment: pgp00000.pgp
Description: PGP signature


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