This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using ccache to improve compilation speed
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Craig Rodrigues <rodrigc at attbi dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 7 May 2002 08:19:55 +0200
- Subject: Re: Using ccache to improve compilation speed
- References: <20020506203803.A2259@attbi.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, May 06, 2002 at 08:38:03PM -0400, Craig Rodrigues wrote:
> Hi,
>
> Has anybody looked at ccache, written by Andrew Tridgell of the
> Samba project? ( http://ccache.samba.org/ )
>
> ccache claims to improve compile-time performance of C/C++
> code by caching preprocessor output.
>
> Could this type of functionality be integrated somehow in
> gcc?
I thought about this too.
The problem of tridge's ccache with integrated preprocessor is that
it kills the advantages of integrated preprocessor, ie. it does effectively
what -save-temps does know, preprocesses into file, then does its own magic
(checksums it) and then conditionally compiles that.
If ccache was integrated, the checksumming (and canonicalizing of .i/.ii
output) could be done as filter between cpplib and the compiler,
unfortunately if the compilation should be conditional, then it would need
to preprocess everything first (while checksumming it), then in another pass
throw the preprocessed tokens into parser and further into
optimizer.
Jakub