Proper OpenSolaris support
I was wondering why is the gcc-dev (gcc 3.4.3) package used instead of sunstudioexpress given that most of OpenSolaris is built with it. Wouldn't it make more sense to use the recommended compiler in the OpenSolaris community ?
Also, many configure scripts detect gcc and add optimization flags, and don't do that for other compilers. I would suggest instead to use:
export CFLAGS="-fast -m64"
export CXXFLAGS="-fast -m64"
And for software that has OpenMP directives:
export CFLAGS="-fast -m64 -xopenmp"
export CXXFLAGS="-fast -m64 -xopenmp"
if the build process is done with the Sun Studio Express compilers.
Last edited by etacarinae; 02-18-2009 at 11:07 AM.
The second part of your message answers it. Because many configure scripts used by PTS auto-detect GCC and are designed around GCC without optimizations for other compilers. The Phoronix Test Suite will not be dropping in optimization flags.
Originally Posted by etacarinae
Then don't you find it unfair that Phoronix articles report *OpenSolaris* as slow compared to Linux ? When this is merely the artifact of the way PTS builds things ? I mean it hardly looks fair comparing optimized 64 bit code with OpenMP support with 32 bit, gcc code with outdated optimization. Plus configure scripts detect newer version of gcc as well, and may enable additional optimization, something which will not happen if you use 3.4.3. So if there are no plans to support anything else then maybe the articles shouldn't "benchmark" OpenSolaris with PTS ?
Originally Posted by Michael
Actually, we have GCC3, GCC4, and Sun Studio comparative benchmarks coming out in a few days. Just waiting for Sun's compiler engineers to finish looking it over.