On 8 November 2012 21:32, "Frank Müller" franky1976@gmx.net wrote:
I now had some time to try out making my own compiler, and started off with a few different configurations with crosstool-ng 1.16.0. Interestingly the results were as slow (if not slightly slower with almost 12 minutes) in compilation as Linaro's gcc.
Ah, good. That was going to be my next step.
So maybe my question should not be why Linaro's gcc is so slow, but why Ubuntu's is so fast. Though I also should note that a) a native (i686/x86_64) build is around the same speed as Ubuntu's crosscompiler and b) Ubuntu's version is maintained by Linaro as well.
My suspicion is that we/crosstool-NG enable extra features like Graphite or GCC is built with a different level of checking. If you have the time, could you check the flags passed to GCCs configure? You can do this on Ubuntu using:
apt-get build-dep gcc apt-get source gcc dpkg-buildpackage -uc -us -b
and compare the configure line with the one in crosstool-NG's build.log.
Marcin Juszkiewicz, if you're on this list, maybe you could offer some insight what the main difference is?
May binutil versions and whether eglibc/glibc/uclibc was used play into it?
Generally not. Generally the compiler dominates the build time.
-- Michael