Announcement

Collapse
No announcement yet.

Proper OpenSolaris support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proper OpenSolaris support

    Hi,

    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 CC=cc
    export CXX=CC
    export CFLAGS="-fast -m64"
    export CXXFLAGS="-fast -m64"

    And for software that has OpenMP directives:
    export CC=cc
    export CXX=CC
    export CFLAGS="-fast -m64 -xopenmp"
    export CXXFLAGS="-fast -m64 -xopenmp"

    if the build process is done with the Sun Studio Express compilers.


    Thank you.
    Last edited by etacarinae; 18 February 2009, 11:07 AM.

  • #2
    Originally posted by etacarinae View Post
    Hi,

    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 ?
    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.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      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 View Post
      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.

      Comment


      • #4
        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.
        Michael Larabel
        https://www.michaellarabel.com/

        Comment


        • #5
          That's good to hear, but still doesn't change the fact that the Phoronix article in question leads people to believe that OpenSolaris is up to 5x times slower than Linux, which is an erroneous conclusion based on misleading results from PTS
          Also gcc 3.4.3 in OpenSolaris doesn't support OpenMP so why do you use OpenMP tests then on that platform ? The OpenMP directives will simply be ignored and the code generated will be sequential. Same goes for 32 bit on OpenSolaris vs 64 bit on Linux, again unfair..

          Originally posted by Michael View Post
          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.
          Last edited by etacarinae; 18 February 2009, 11:49 AM.

          Comment

          Working...
          X