[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-user
Subject:    [gentoo-user] FW: NEW Subject: Ccache
From:       "Charles Marcus" <CharlesM () Media-Brokers ! com>
Date:       2002-07-10 18:25:17
[Download RAW message or body]

Any chance this might be something that could speed up compiles for Gentoo
installs?

-----Original Message-----
From: Danny Cox [mailto:danscox@mindspring.com]
Sent: Wednesday, July 10, 2002 1:13 PM
To: ALE Mailing List
Subject: [ale] NEW Subject: Ccache


All,

	Andrew Tridgel (of Samba) has updated a program that I knew nothing
about: compilercache.  It was a shell script (and other helper programs)
that cached compiler output, and used it again if a later run had the
same input file.  His version is written in C, and works a bit faster.

	Why might you use it?  If you ever perform a 'make clean; make', then
it's very useful.  It's the classic space versus time tradeoff, but
since drives are so large and cheap these days, why not?

	In my case, a complete build of our "distribution" (for our NAS
product) took over three hours.  This is on a dually Athlon 1.2 GHz and
1 GB RAM.  Using ccache, it takes a little over 40 minutes.

	I've been very pleased with the program.  You can limit the amount of
space the cache takes, and/or the number of files stored.

	If you don't care about how it works, please skip this paragraph.  It
runs each source file through the preprossessor, forms an MD4 hash, and
uses the hash for the file name.  If the file doesn't exist, it calls
the C compiler to produce it, and links the file in the cache with the
intended output (if it can, else it copies).  Later, if a file with that
hash DOES exist, it links it with the intended output, and updates the
last modified time.

	Get it at http://ccache.samba.org/ .

	Hope this helps someone!

--
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.


_______________________________________________
gentoo-user mailing list
gentoo-user@gentoo.org
http://lists.gentoo.org/mailman/listinfo/gentoo-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic