Re: A 50%-100% difference in C++ execution time between Solaris and Windows

From: Thomas Dehn (thomas-usenet_at_arcor.de)
Date: 05/26/03


Date: Mon, 26 May 2003 22:33:14 +0200


"AviA" <avia@mercadosw.com> wrote:
> Anybody has any idea why we are experiencing such a difference in a
> c++ code? We are using gcc 3.2, all our code is optimized (-O2), and
> of course the CPUs compared are of the same size. Looks like the
> underlying libstd c++ of gnu or something wrong that we're doing.

For starters, -O2 is a low optimization level only, and
you are using gcc rather than Sun's C++ compiler, which
has better optimization than gcc. Then, if you are making
extensive use of math libraries, you should use
libmopt or similar fast libraries on Solaris. The default libm
on Solaris is slow and exact, whereas the default math
libraries on Windows are fast and inexact.

Thomas



Relevant Pages

  • Solaris 9 C compiler cannot create executables
    ... Install KOLAB2 without problem but on Solaris 9 or 8 I have allways the same ... system SUNWbtoox CCS libraries bundled with SunOS ... system SUNWcsxu Core Solaris (Usr) ...
    (SunManagers)
  • Re: Good math/stats libraries for Ruby?
    ... I'm not sure of the best overall scheme for structuring dependencies ... current ruby math libraries are gems. ... I don't mean to say that Python is crummy like ... It doesn't seem like basic scientific and math libraries ...
    (comp.lang.ruby)
  • Re: Fastcode Sponsoring
    ... validate libraries. ... original tests and the Cody & Waite tests. ... Georgia Institute of Technology, Technical Report GIT- ... I wouldn't want to bet that current math libraries work ...
    (borland.public.delphi.language.basm)
  • Re: Assertion failuers
    ... it occasionally core dumps on solaris 2.9. ... > i was wondering the use of above flags ... --disable-shared will turn off the building of shared libraries ... it is best if you build your libraries and applications ...
    (comp.protocols.kerberos)
  • Re: dynamic linking vs. static linking
    ... I would happy to dynamically link if I ... however a simple test app with one printf will not run on the remote host. ... if it's not something that's part of Solaris ... > System libraries aren't self-contained routines that just perform ...
    (comp.unix.solaris)