Re: Updating GCC

From: Mohun Biswas (m.biswas_at_invalid.addr)
Date: 06/20/04

Date: Sun, 20 Jun 2004 03:26:24 GMT

Robert Clark wrote:
>>P.S. Why do I make bootstrap? What is a bootstrap?
> GCC actually uses a two-stage build. The first stage (bootstrap) uses
> whatever compiler is installed on your system to build a special (very
> small) compiler that is then used to build the full GCC version. In this
> was the GCC folks cut down on the possibility of a compiler bug from a
> older version of GCC or a third party compiler causing problems in the new
> build.

Actually, from my observation it's a three-stage build. They build once
with the "old" compiler, then rebuild with the compiler built in stage 1
(the "bootstrap"), then one more time simply to make a comparison
binary. If the compilers built by stages 2 and 3 show any differences,
that's a red flag. If they're identical, all is well.

I'm not a gcc expert, that's just my impression of what the build does
based on having built it a good bit recently.


Relevant Pages

  • Re: How many nesting levels does an assembler need for macros ?
    ... introduce limits into something new they're developing. ... complexity will make it easier to port, compile, bootstrap, maintain, etc.. ... like SmallC, over GCC. ... slighlty more developed C compiler to bootstrap. ...
  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
  • Re: 10.0-CUR r226986 && ports (general)
    ... configure:3232: checking for gcc ... Configured with: FreeBSD/amd64 system compiler ... configure:5483: checking how to associate runtime and link libraries ... configure: failed program was: ...
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...