This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How Gcc compile itself ?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Alan Xin" <xunilwithkrow at gmail dot com>
- Cc: "gcc-help" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Sep 2009 21:50:44 -0700
- Subject: Re: How Gcc compile itself ?
- References: <200909180924374378917@gmail.com>
"Alan Xin" <xunilwithkrow@gmail.com> writes:
> Recently, I do some modification in Gcc-4.2.4 in several files like c-parser.c, c-decl.c, c-common.c. And when I recompile the patched gcc, I found the modification effect the new gcc in construction processing.
>
> In my conjecture, Gcc first build part of it , and use this part to compile other part ,then the modification affect itself.
> How does this happen exactly? Is there any paper or doc talking about this part ?
The normal build of gcc bootstraps the compiler.
http://en.wikipedia.org/wiki/Bootstrapping_(compilers)
Ian