Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 09-14-2002, 05:27 PM   #1
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Speed up in Fink with ccache...

One of the first packages I installed when upgrading to Fink for 10.2 is the package ccache-----1.9-1 ported to Fink by Ben Hines.

It md5sums cat of cc command line arguments and preprocessor output (including warnings), so include files aren't a problem, and stores object files in a cache directory in your home directory.

Is great for cvs builds with fink.

The only way you should be able to tell that you are using ccache is the speed. 5 to 10 times speedup in common compilations. Well, it consumes disk space, but you can set the cache size.

options to ccache:
Code:
       -s                      show statistics summary
       -z                      zero statistics
       -c                      run a cache cleanup
       -F <maxfiles>           set maximum files in cache
       -M <maxsize>            set maximum size of cache (use G, M or K)
       -h                      this help page
       -V                      print version number
and checking the statistics:
Code:
153 [Sao @/Users/pm] % ccache -s
cache hit                            920
cache miss                          8852
called for link                     1557
multiple source files                 41
compile failed                       219
preprocessor error                   152
not a C/C++ file                     742
autoconf compile/link               2463
unsupported compiler option         2999
no input file                        233
files in cache                     17704
cache size                         265.9 Mbytes
When you install the ccache Fink package it will automatically set up all the links.

For more info you can read here:

http://ccache.samba.org/


Cheers...

Last edited by sao; 09-14-2002 at 05:36 PM.
sao is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.