Linked by Tony Bourke on Mon 23rd Feb 2004 21:54 UTC
Benchmarks In continuing with my articles exploring the my SPARC-based Sun Ultra 5, I'm going to cover the topic of compiler optimizations on the SPARC platform. While many are familiar with GCC compiler optimizations for the x86 platform, there are naturally differences for GCC on SPARC, and some platform-specific issues to keep in mind.
Permalink for comment
To read all comments associated with this story, please click here.
Re: Gentoo Sparc
by Syntaxis on Tue 24th Feb 2004 04:10 UTC

"I use Gentoo Linux on my ultrasparc and the best thing about it is everything is compiled with a common set of CFLAGS"

I agree that this is a nice feature, but I question how advantageous this really is in practice. I suspect that one would get most of the speed benefits by simply carrying out targetted optimization of those key apps that really stand to benefit from it (such as OpenSSL, which was the example chosen in this review). It's perfectly possible to this in binary distributions - Debian has apt-build (http://packages.debian.org/unstable/devel/apt-build), for example. Anyway, a benchmark putting this to the test would be quite interesting.

Additionally, there's the flip side of the coin to consider. For the apps that *don't* particularly stand to benefit, some so-called system-wide "optimizations" may actually have a negative effect. For instance, the majority of Gentoo users blindly set "-O3" as the default CFLAGS for their x86 systems (http://www.mail-archive.com/gentoo-dev@gentoo.org/msg02236.html) even though in many cases "-O2" would probably yield better performance.