This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: If you had a month to improve gcc build parallelization, where would you begin?
- From: David Fang <fang at csl dot cornell dot edu>
- To: Geert Bosch <bosch at adacore dot com>
- Cc: Simon Baldwin <simonb at google dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 3 Apr 2013 17:56:27 -0400 (EDT)
- Subject: Re: If you had a month to improve gcc build parallelization, where would you begin?
- References: <CAPTY64o0UBQBwnq_GMNOBRmdBV4QTc+En3Q7pLn6iR1aKXKQTA at mail dot gmail dot com> <43ABCE7D-03A4-4534-9A3C-79360A7AEC75 at adacore dot com>
Apart from parallelism, I wished the stage 2,3 compilations had a hook for
ccache-ing to accelerate rebuilds. ccache is capable of detecting changes
in the compiler binary (see CCACHE_COMPILERCHECK in man page) so when
stage 1's result doesn't change, there's potential for cache-hitting in
stage 2. I've done this with clang manual bootstraps, for example.
Fang
--
David Fang
http://www.csl.cornell.edu/~fang/