User forums > Help

ccache to speed up builds

<< < (6/7) > >>

kencamargo:

--- Quote from: jens on May 24, 2010, 12:05:07 am ---ccache-gcc.bat:

--- Code: ---@echo off
ccache "gcc %*"

--- End code ---

ccache-g++.bat:

--- Code: ---@echo off
ccache "g++ %*"

--- End code ---

Put them into the system-path or MinGW's bin-folder should work.
I used the "Additional paths" in "Toolchain executables"-tab.
Tested on my virtual(kvm/qemu)-vista-system.


--- End quote ---

It works here - I used mingw32-gcc and mingw32-g++, I don't know if this makes any difference.

Thanks once again!

Ken

kencamargo:
Now, is there anything that can speed up linking as well?

Ken

reckless:
nothing usable from within codeblocks i believe :(

theres a tool from thor lilquist he uses for gtk building but it relies heavily on bash and is more of a replacement for libtool.

ld isnt that slow to be frank since its a real program i dont find linking times to be any scary with gcc :) not even for huge libraries like wxwidgets monolithic.

and libtool can make a grown man cry on windows  :lol:

oBFusCATed:

--- Quote from: reckless on May 24, 2010, 01:46:42 am ---ld isnt that slow to be frank since its a real program i dont find linking times to be any scary with gcc :) not even for huge libraries like wxwidgets monolithic.

--- End quote ---
Try to code using boost::bind and boost::function.... my app was 10k LOC and the linking was slow.

For linux there is the gold linker that is said to be faster than ld, but it is linux only. http://en.wikipedia.org/wiki/Gold_%28linker%29

kencamargo:

--- Quote from: reckless on May 24, 2010, 01:46:42 am ---
ld isnt that slow to be frank since its a real program i dont find linking times to be any scary with gcc :) not even for huge libraries like wxwidgets monolithic.

and libtool can make a grown man cry on windows  :lol:

--- End quote ---

Hehe. :)

You do have a point about the linking times not being that large, but anything that you can shave off during a heavy debug-rewrite-recompile-debug session is welcome...

Ken

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version