Results 1 to 5 of 5

Thread: Proper OpenSolaris support

  1. #1
    Join Date
    Feb 2009
    Posts
    49

    Default 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; 02-18-2009 at 11:07 AM.

  2. #2

    Default

    Quote 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.

  3. #3
    Join Date
    Feb 2009
    Posts
    49

    Default

    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 ?

    Quote 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.

  4. #4

    Default

    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.

  5. #5
    Join Date
    Feb 2009
    Posts
    49

    Default

    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..

    Quote 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; 02-18-2009 at 11:49 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •