faster compiling using gcc
Posted: Sat Aug 04, 2007 9:42 am
Hi all,
Just came to know there is a tool called ccache which helps in faster compilation. All the tutorial is courtesy eternalswd.
First that tool needs to be downloaded & installed :-
Now one has to set the environment up for it. There are two ways, one doing stuff in .bashrc or better yet, doing it in /etc/enviroment (globally) guessing the second is so if its a multi-user environment then everybody else also benefits. If you do the same in .bashrc then only you benefit. I went the /etc/environment way :-
The first thing is to make sure to backup your /etc/environment
Then make the changes, the path atleast in my /etc/environment was :-
changed it so now it reads :-
This should make compile times faster for sure.
Just came to know there is a tool called ccache which helps in faster compilation. All the tutorial is courtesy eternalswd.
First that tool needs to be downloaded & installed :-
Code: Select all
sudo aptitude install ccache
The first thing is to make sure to backup your /etc/environment
Code: Select all
sudo cp /etc/environment /etc/environment_backup
Code: Select all
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Code: Select all
PATH="/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"