[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compile speed



Am Sonntag, den 15.06.2008, 14:01 +0200 schrieb Hans-J. Ullrich:
> Hi all,
> 
> I would like to increase compiling speed of my system (AMD64, dual-core, 2GB 
> RAM).
> 
> I suppose, there are some settings in /etc/apt/apt-build.conf, I can use with 
> gcc or make (such like NICE=something) or let it run more processes at a 
> time.

Well, I guess, you can start your compiler via "make -j 2" and/or put
something like "make_options = -j2" into "/etc/apt/apt-build.conf" (but
I'm not sure about the correct syntax for apt-build.conf).

The "-j" option of the "make"-command specifies the number of jobs to
run simultaneously. You have a dual-core, so I guess -j2 is a good
start. Maybe -j3 or even more may give you some more speed, you'll have
to try...

You could also disable optimization in gcc (the -O switch), which speeds
up compiling. But that would result in slower/bigger binaries... so i
guess that is not what you want... ;-)


HTH,
Marcus


Reply to: