Search This Blog

Monday, February 24, 2014

CCache - speed C++ compiler output

ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Supported languages are C, C++, Objective-C and Objective-C++.

to make it work on aix with xlC_r compiler  , i used the next steps:

i download the sources and compile them on aix via g++ compiler
i copied the output ccache program into my build machine.

i set the next environment to make support xlC_r compiler:
 export CCACHE_EXTENSION=i     (this tell the compiler to generate preprocessor file with i extension)


helper settings FYI:
export CCACHE_DISABLE=1   (to avoid using ccache)
export CCACHE_LOGFILE=/yaniv/ccachelog.log  (to see ccache log)


enjoy
Yaniv Tzanany


No comments: