This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc compile time


On May 4, 2006, at 2:17 PM, Bill Cunningham wrote:
I used gcc-2.96 to compile gcc-3.4.6 core with the c++ libraries added.
It took almost if not two hours to compile and that was with these options:


    make CFLAGS='-O' LIBCFLAGS='-g -O2'
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap

I want to cut down on compile time. Are there any options that can do that?

You can use ccache to speed it up if you want to compile it over and over again. You can use -O0, that's faster than -O2. Also, you can install the new compiler, and then just use make instead of make bootstrap, that's also faster. Plus, you could just use make all instead, that's faster than bootstrap. And lastly, leaving out the - g is also faster.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]