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