找回密码
 注册
查看: 2729|回复: 0

5 to 10 times speedup in common compilations with ccache

[复制链接]
发表于 2007-11-6 03:16:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
http://ccache.samba.org/
ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations.
how to use it. Add ccache to Makefile
CC       = ccache gcc
CXX      = ccache g++
in makefile
If you have multi-core CPU, compile with
    make -j 4 (if you 2 cores)
    make -j 6 (if you have 4 cores)
It can speed-up a lot
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表