From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16051 invoked from network); 8 May 2000 03:44:51 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 May 2000 03:44:51 -0000 Received: from splat.niehs.nih.gov (splat.niehs.nih.gov [157.98.0.29]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA06511 for ; Sun, 7 May 2000 23:44:50 -0400 Received: from splat.niehs.nih.gov (localhost [127.0.0.1]) by splat.niehs.nih.gov (8.9.3/8.9.3) with ESMTP id XAA14061 for ; Sun, 7 May 2000 23:44:50 -0400 To: axp-list@redhat.com Subject: Re: CXX Success Stories ??? In-reply-to: References: Comments: In-reply-to Blake Carlson message dated "Tue, 02 May 2000 14:37:48 -0400." Date: Sun, 07 May 2000 23:44:50 -0400 Message-ID: <14059.957757490@splat.niehs.nih.gov> From: "Lance A. Brown" Blake Carlson writes: > I had a bit of scientific code handed down to me which I've been trying > to understand and optimize for the last few weeks. With GCC (and the > best combination of flags I could find) the runtime was about 40 minutes. > With CXX and the '-fast' flag, the runtime was reduced to 3 minutes on the > same machine (DP264) yielding nearly identical results! > So, I got lucky and CXX picked up something GCC missed. In some of our > other well written programs were not seeing significant performance > differences. A recent Slashdot article is about a review of the Compaq Alpha DS-10 running Linux. The review includes several different benchmarks that had some very surprising results when run compiled with GCC vs. the Compaq C compiler available. At the time of the review, GCC was NOT optimizing code well to run on the Alpha chip; it did not take advantage of the plethora of registers available, for example. The Compaq compiler *did* take advantage of all available registers yielding much better run times in some cases. The review is on aceshardware.com --[Lance]