From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d5d5f3072adbb376 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-05-31 14:57:35 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3B16BE4F.F3EBB550@zk3.dec.com> From: Jeff Sullivan X-Mailer: Mozilla 4.77 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Compaq C++ optimizer weakness References: <5l41f9.m3v.ln@bizon.peterstar.com> <3B16BD4E.482B336A@zk3.dec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 31 May 2001 17:57:35 -0400 NNTP-Posting-Host: 16.141.0.178 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 991346255 16.141.0.178 (Thu, 31 May 2001 14:57:35 PDT) NNTP-Posting-Date: Thu, 31 May 2001 14:57:35 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:2375 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.