From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,d5d5f3072adbb376 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-05-30 00:37:30 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-was.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!bland.fido.de!nobody From: tobi@bland.fido.de (Tobias Ernst) Newsgroups: comp.unix.tru64 Subject: Comapq C++ optimizer weakness Date: Wed, 30 May 2001 08:47:00 MEZ Organization: Fido.De Host Baden-Wuerttemberg Message-ID: <991211395@f1.n7600.z242.fido.de> References: <5l41f9.m3v.ln@bizon.peterstar.com> NNTP-Posting-Host: lilapause.physcip.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Comment-To: Stas X-MailConverter: SoupGate-OS/2 v1.42 Xref: archiver1.google.com comp.unix.tru64:2345 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 ). 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