From: Jeff Sullivan <jps@zk3.dec.com>
Subject: Re: Compaq C++ optimizer weakness
Date: Thu, 31 May 2001 17:53:18 -0400 [thread overview]
Message-ID: <3B16BD4E.482B336A@zk3.dec.com> (raw)
In-Reply-To: 5l41f9.m3v.ln@bizon.peterstar.com
I asked the Compaq C++ team about this and got the following reply:
We consistently test our compilers on the Stepanov benchmark internally,
and have for at least the past two years been able to produce low
abstraction penalties in the range of 1.00 - 1.04. However, to
obtain this penalty, we require that you add two more options
-tused and -inline all. -tused asks the compiler to add the template
instantiations into the object file (as opposed to creating them
in a repository which is the deault) and -inline all helps fine-tune
our internal inlining heuristics.
With these two additional options, this is what I see:
> a.out
test absolute additions ratio with
number time per second test0
0 0.20sec 250.01M 1.00
1 0.20sec 250.01M 1.00
2 0.22sec 230.78M 1.08
3 0.20sec 250.01M 1.00
4 0.22sec 230.78M 1.08
5 0.20sec 250.01M 1.00
6 0.22sec 230.78M 1.08
7 0.20sec 250.01M 1.00
8 0.22sec 230.78M 1.08
9 0.20sec 250.01M 1.00
10 0.22sec 230.78M 1.08
11 0.20sec 250.01M 1.00
12 0.22sec 230.78M 1.08
mean: 0.21sec 240.94M 1.04
Total absolute time: 2.70 sec
Abstraction Penalty: 1.04
We are working on not requiring the user to add the two
additonal options, but we do not have a firm deadline on
this goal.
-model ansi is a new object model which produces objects
incompatible with objects generated from older C++ versions
(The default object model, -model arm, has limitations in its
design. The new object model will allow us to be fully
compliant with the ANSI/ISO C++ standard). We suggest that
you use the -model ansi option only if you can recompile all
your sources and libraries. We have NOT specifically added
any optimizations exclusively to the new object model, such
that it produces code faster than the older one. However, note
that the new object model was designed to be more efficient than
model arm.
next prev parent reply other threads:[~2001-05-31 21:53 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 ` Jeff Sullivan [this message]
2001-05-31 21:57 ` Compaq " 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