Make sure your compiler is using ccache

watch ccache -s
OMG, you are a Gentoo junkie. -funroll-loops-me-harder ;-) ccache is a compiler cache, which speeds up your compiler on successive runs, because it caches intermediate compiled output.
Sample Output
Every 2.0s: ccache -s                   Sat Feb 14 02:11:52 2009

cache directory                     /home/piyo/.ccache
cache hit                           3958
cache miss                          4010
called for link                      400
multiple source files                  6
compile failed                       884
ccache internal error                  1
preprocessor error                   392
not a C/C++ file                     454
autoconf compile/link               1069
no input file                        192
files in cache                      4456
cache size                         102.1 Mbytes
max cache size                     200.0 Mbytes

By: piyo
2009-02-13 17:16:32

What Others Think

CCACHE_DIR="/var/tmp/ccache/" watch ccache -s
energy · 606 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: