Faster TOOL-CHAIN build.
Martin Hodge
Posts: 1,246
If you have a multi-core processor in your machine you can significantly reduce the build time of PropGCC by adding the '-j' option to some of the make commands in rebuild.sh.
For example, build times on my quad-core Core i5-2:
(I haven't seen any side effects of this option, however it should be vetted by an expert.)
rebuild.zip
-edit-
This works for Linux, not sure about Cygwin.
For example, build times on my quad-core Core i5-2:
With no '-j' option: 10m 46s
With '-j 4': 3m 55s
With '-j 4': 3m 55s
(I haven't seen any side effects of this option, however it should be vetted by an expert.)
rebuild.zip
-edit-
This works for Linux, not sure about Cygwin.
zip
1K
Comments
Ken Gracey
But seriously thanks for the mention. I'm very interested in getting as many hooks as I can into that Italian Juggernaut.
Thanks for the reminder.
-Phil
Building a C program with propeller-elf-gcc is very quick.
Building the entire Propeller GCC tool-chain takes a while depending on the system.
Thanks,
--Steve
@A-team: Go team, go!! Build those packages!!!!
Ah, got it. Thanks!
-Phil
Martin, I've added "jbuild.sh" to the repository.
Usage: ./jbuild.sh N [rm]
N is the number of jobs.
Optional rm says remove the build directory first.
This works fine on Debian Linux. YMMV on other platforms.
I made the number of jobs a parameter because some machines have 6+ cores in addition to the extra multimedia co-processors.
You can also get fancy and do JOBS="-j "`cat /proc/cpuinfo | grep processor | wc -l`
That should work for one or more cores automatically.
Nice tip Martin. Been a while since I looked at /proc.
We can use: ./jbuild.sh `cat /proc/cpuinfo | grep processor | wc -l`.
I use Debian on VirtualBox. It doesn't have processor in cpuinfo.
VirtualBox Debian still gets a big speedup if I use ./jbuild.sh 4