watch ccache -s

Make sure your compiler is using ccache

OMG, you are a Gentoo junkie. -funroll-loops-me-harder ;-) http://ccache.samba.org/ 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

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

These Might Interest You

  • Uses Google Closure Compiler (can be downloaded via http://closure-compiler.googlecode.com/files/compiler-latest.zip)


    -2
    java -jar compiler.jar --js file.js
    michaelmior · 2010-08-04 15:13:59 2
  • LaTeX is not a smart compiler - You need to run it several times to make it back-patch all the missing refs. The message if to do so or not is buried in its endless output and the log file. This grep lines helps to find it.


    0
    egrep "(There were undefined references|Rerun to get (cross-references|the bars) right)" texfile.log
    gwiener · 2009-07-07 06:48:03 1

  • 2
    gcc -dM -E - < /dev/null
    lucasrangit · 2012-04-27 17:37:50 0
  • Adds a newline to the end of all cpp files in the directory to avoid warnings from gcc compiler.


    0
    find . -iname "*.cpp" -exec perl -ni -e 'chomp; print "$_\n"' {} \;
    grundprinzip · 2009-02-18 14:12:24 1
  • You may have to disable fortran and openmp using the USE variable too. YMMV.


    0
    EXTRA_ECONF="--disable-libquadmath --enable-languages=c" crossdev --target x86_64-elf -s4
    samcamwilliams · 2013-11-25 14:54:45 0
  • If you receives a lot of compiling errors, type 'clear', then reedit your code and press "SHIFT+PGUP". Show Sample Output


    -3
    alias clear='( for ((i=1;i<$LINES;i++)) ; do echo "" ; done ) ; clear'
    Marcio · 2009-10-27 14:38:31 0

What Others Think

CCACHE_DIR="/var/tmp/ccache/" watch ccache -s
energy · 483 weeks 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: