|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
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 |
|