FastNetMon

Thursday 25 February 2010

Ускорение компиляции C/C++ программ: ccache

Да, ожидаемое ускорение до 4-5 раз: http://ccache.samba.org/performance.html

А вот отзывы: http://www.vflare.org/2009/03/ccache-to-speed-up-linux-kernel-compile.html

3 comments :

  1. Hello!
    Good blog fella!

    the another way to speed UP a compilation: create ONE source file with *.cc|*.cpp extension and include ALL of compiled source files into this new one - just like headers include.
    4 example :
    contents of prj_src.cpp file
    #include "dmx_bit_flds.cpp"
    #include "dmx_fsm.cpp"
    #include "dmx_fsm_transition.cpp"
    #include "dmx_fsm_state.cpp"
    Then compile ONLY this one source = prj_src.cpp
    Speeds up to 5-20 times faster.

    ReplyDelete
  2. This work at least in M$ VS 2003,2005.
    IMHO speed up issued from less files disk readings..

    ReplyDelete
  3. Speed up is depends on files qty = more files -> more speed up.

    ReplyDelete

Note: only a member of this blog may post a comment.