From: tobi@bland.fido.de (Tobias Ernst)
Subject: Comapq C++ optimizer weakness
Date: Wed, 30 May 2001 08:47:00 MEZ [thread overview]
Message-ID: <991211395@f1.n7600.z242.fido.de> (raw)
In-Reply-To: 5l41f9.m3v.ln@bizon.peterstar.com
Hallo Stas!
S> g++:
S> Abstraction Penalty: 1.19
S> cxx:
S> Abstraction Penalty: 4.06
Interesting. I did some tests on my own. I used an XP1000 workstation
with g++ 2.95.2, cxx 6.3-001 and KCC 4.0a1
Of course, the Abstraction Penalty was 1.0 for KCC (guess where the
benchmark comes from <g>). With gcc, I also did get 1.0. I wonder why
g++ 2.95.2 should optimize better than g++ 2.95.3, but it seems it
does. Maybe you also just ran the g++ test while your machine was not
100% idle.
With cxx and the compiler options you posted I got the same devastating
results (4.18 at my system). However, by experiment I found out that if
I add the "-model ansi" option to cxx, it gest nearly as good as the
other ones, with an Abstraction Penalty of 1.04, and ratios different
from 1.00 only for test 3 and 10.
Perhaps anycone can comment on why "-model ansi" so dramattically
improves performance for this benchmark?
Should we generally add "-model ansi" to improve performance, or is
this benchmark just written in a way that by accident "-model ansi" is
faster for this benchmark?
Viele Gr��e,
Tobias
next prev parent reply other threads:[~2001-05-30 7:47 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 [this message]
2001-05-31 21:53 ` Compaq " Jeff Sullivan
2001-05-31 21:57 ` Jeff Sullivan
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