Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Jeff Sullivan <jps@zk3.dec.com>
Subject: Re: Compaq C++ optimizer weakness
Date: Thu, 31 May 2001 17:57:35 -0400	[thread overview]
Message-ID: <3B16BE4F.F3EBB550@zk3.dec.com> (raw)
In-Reply-To: 3B16BD4E.482B336A@zk3.dec.com

Another comment from the compiler team was this:

The "awful" Compaq CXX result from the original post occurred
partly because our baseline was so fast:

> g++:
>  gcc version 2.95.3 20010315 (release)
>  compile command: g++ -O2 -o stepanov.GCC stepanov_v1p2.C
>  ./stepanov.GCC
> test      absolute   additions      ratio with
> number    time       per second     test0
> 
>  0        0.65sec    76.93M         1.00
>  1        0.78sec    63.83M         1.21
>  2        0.78sec    63.83M         1.21
>  3        0.80sec    62.50M         1.23
>  :

> cxx:
>  Compaq C++ V6.3-010 for Compaq Tru64 UNIX V5.1 (Rev. 732)
>  Compiler Driver V6.3-010 (cxx) cxx Driver
>  compile command: cxx -o stepanov.Q -O4 -fast stepanov_v1p2.C -lm
>  ./stepanov.Q
> test      absolute   additions      ratio with
> number    time       per second     test0
> 
>  0        0.25sec    200.01M         1.00
>  1        0.35sec    142.86M         1.40
>  2        0.97sec    51.73M         3.87
>  3        0.82sec    61.23M         3.27
>  :

We're honestly slower on test 2, and nearly the same on test 3,
but it all looks worse because we're 2.5x as fast on the baseline
case.

Compiling without -O4 and -fast "fixes" that by slowing down the
baseline case.  Perhaps using the slightly-older g++ does the
same for them.


      reply	other threads:[~2001-05-31 21:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-29 21:30 Comapq C++ optimizer weakness Stas
2001-05-30  7:47 ` Tobias Ernst
2001-05-31 21:53 ` Compaq " Jeff Sullivan
2001-05-31 21:57   ` Jeff Sullivan [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox