From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,4110a8b11ab49617 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Newsgroups: comp.os.linux.alpha Subject: Re: Slow machine or slow compiler? Date: Wed, 08 Dec 2004 12:04:04 +0100 Message-ID: References: <31moeqF3d2g63U1@individual.net> <31mt08F3dg697U1@individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net K1dlznE0HO0cJHUAbSll4Aapba8CmD/Ewe1iTcnnYQ5+4vIRmG User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:dbnxdeXfcQzdb68KjyDjYwLf+CI= Xref: g2news1.google.com comp.os.linux.alpha:394 Staffan Tjernstrom writes: >> Ive seen people saying that about Alpha gcc before and no doubt its true.. >> but since there isnt really an alternative to gcc, it does make it a >> realworld benchmark doesnt it? Mystery untapped performance may as well not >> be there as no one can unlock it with gcc.. >> > There is an alternative (I'm not in a position to be able to say if it's > faster or slower compile-time wise however). > > HP has Compaq's AXP-optimized c, c++ & fortran compilers available for > download. By dint of some careful tinkering I have these installed for > preference to the g* compilers, especially since the AXP architecture is > very very very very very very very prone to being as slow as a pig if the > compiler doesn't get things like alignment correct out of the box (an > unaligned byte fetch completely breaks the pipelining, on Tru64 this can > cause a 400%+ degredation in execution speeds!). GCC does the right thing with alignment and such things. It just produces less well optimized code, especially for floating point. For integer code, the difference between gcc and ccc is rarely more than 10%, whereas for floating point, ccc often produces >30% faster code. When using ccc, the floating point performance of the Alphas can be quite impressive, compared to the toys from Intel. I have seen cases where my 533 MHz pca56 would outperform a 1 GHz pentium3. (Some IBM Power3 (I didn't have a Power4) units (running AIX) did quite well, too.) -- M�ns Rullg�rd mru@inprovide.com