-j6 build
Jean-Marc Saffroy
jean-marc.saffroy@joguin.com
Mon Aug 30 16:52:00 GMT 2010
On 08/24/2010 06:33 AM, Mike Stump wrote:
> So, I have a cgen port and am wondering, is there anyway to speed up the 6 minute build that uses 1 core, to being a 1 minute build that uses 6 cores? -j8 didn't seem to do it.
>
FWIW setting CC="ccache gcc" and CFLAGS="-O0 -pipe" at configure time
did wonders for me (in addition to make -jN with N = 2 x number of
cores). Also I issue a single make command for all targets.
See attached makefile, which builds a complete toolchain (binutils, gcc,
newlib, and gcc for newlib).
Binutils (cgen, gas, ld, sim) now build in 36 seconds on my quad core
(44secs user, 34secs sys), with hot caches.
HTH,
JM
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <http://sourceware.org/pipermail/cgen/attachments/20100830/a529bcb5/attachment.ksh>
More information about the Cgen
mailing list