how to compile gcc

Rafael Ávila de Espíndola rafael.espindola@gmail.com
Sat Aug 20 13:13:00 GMT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050820/eae12e00/attachment.sig>


More information about the Gcc mailing list