What is the best way to speedup GCC?

Every time I compile my code in GCC it takes about a minute. What is the best way to speed this up? Should I just buy a newer faster computer?

3

1 Answer

The best way to speed up recompiles of a developing code is to cache the compiler outputs with ccache. It will work best if only small parts of the code get modified.

Additionally, if you have access to a lot of machines distcc allows you to distribute your compile jobs over a network (that way I can say without fear "Do me a make -j100!). Depending on how many machines you have available this might give a sizeable speed boost.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like