From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5831 invoked from network); 5 Mar 1999 16:00:44 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 5 Mar 1999 16:00:44 -0000 Received: from bacchus.pc1.uni-duesseldorf.de (root@bacchus.pc1.uni-duesseldorf.de [134.99.152.11]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA15562 for ; Fri, 5 Mar 1999 10:56:07 -0500 Received: from bacchus.pc1.uni-duesseldorf.de (jochen@localhost [127.0.0.1]) by bacchus.pc1.uni-duesseldorf.de (8.8.7/8.8.7) with SMTP id QAA23862; Fri, 5 Mar 1999 16:56:05 +0100 From: Jochen Kuepper Organization: Heinrich-Heine-Universitaet To: axp-list@redhat.com, Greg Lindahl Subject: Re: gcc speed Date: Fri, 5 Mar 1999 16:51:43 +0100 X-Mailer: KMail [version 1.0.17] Content-Type: text/plain References: <199903051427.JAA20948@adder.cs.Virginia.EDU> MIME-Version: 1.0 Message-Id: <99030516560401.23853@bacchus.pc1.uni-duesseldorf.de> Content-Transfer-Encoding: quoted-printable On Fre, 05 M=E4r 1999 Greg Lindahl wrote: >> >Note that he is talking about inline assembly, not actual C code. >>=20 >> So why is there a difference in the code generated from the assembly b= etween >> gcc-2.8.1 and egcs-1.1.x ? > >When you use assembly with gcc, it runs it through the optimizer. In >some cases this makes the code better; if the code is great to start >with, it often makes it worse. The complaint about egcs is that you >can't turn off the optimizer. > >For C or Fortran code on the Alpha, egcs probably always produces >faster code. Well, probably I should ask this the egcs people, but still:=20 What does gcc -O0 do ? Still going through the optimizer ? Moreover as I understood the missing feature to turn off optimization was= meant for DU cc ? Btw: I am happy with egcs (+libffm, testing libcpml right now) for my mix= ed C++/FORTRAN project, there are several pros so I wouldn't even think abou= t switching to gcc-2.8 or any other suite, still I am wondering why gcc-2.8 should be so much faster (590 vs 520) ? Greetings, Jochen ----------------------------------------------------------------------- Jochen K=FCpper Heinrich-Heine-Universit=E4t D=FCsseldorf jochen@uni-duesseldorf.de Institut f=FCr Physikalische Chemie I Universit=E4tsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681 40225 D=FCsseldorf fax ++49-211-8115195 Germany http://www-public.rz.uni-duesseldorf.de/~jochen -----------------------------------------------------------------------