From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,37ab7eb89916c06 X-Google-Attributes: gid111c93,public From: Robert Harley Subject: Re: Compaq is sitting on a goldmine now that Linux is taking of Date: 1998/11/24 Message-ID: #1/1 X-Deja-AN: 415277650 Content-Transfer-Encoding: 8bit References: <730261$kc7$1@tesla.EECS.Berkeley.EDU> <73cua4$779$1@hiram.io.com> <365A9EFE.6D405238@theo1.physik.uni-stuttgart.de> <365AEF49.EDBAFB13@nist.gov> <73eskl$tmv$1@tesla.EECS.Berkeley.EDU> Content-Type: text/plain; charset=iso-8859-1 Organization: I.N.R.I.A Rocquencourt Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Adam C. Powell, IV wrote: >He said that DEC engineers >have looked over the back-end optimizations in egcs, and determined that it's >pretty close to optimal here, not much more can be done. Well that's obviously bull. Just look over the ASM produced sometime and it is quite obviously not scheduled optimally except sometimes by luck, whereas the output of DEC's tools is always at least "locally" optimal. Try some experiments and you'll typically find that GCC on Digital Unix with 'as' reordering the ASM is about half way between GCC with 'gas' and DEC C (I'm generalising to make a point, there's plenty of variation). peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) writes: > You only mention Fortran. I've found that DEC CXX produces binaries > anywhere from 30% to 50% faster than egcs, and I've heard that DEC CC > is similarly better. >[...] > I use DEC CXX and DEC CC over egcs whenever possible. Well for speed-critical stuff I usually compile with everything I can get my hands on and take a look at the ASM. Here's are some example measurements of iterations per second of some stuff: * 178 K (egcs 1.1, Haifa, -O2) * 190 K (egcs 1.0.3, Haifa, -O2) * 207 K (gcc 2.7.2.1, -O4) * 211 K (gcc 2.8.1, -O2) * 217 K (gcc 2.8.1, -O2 -freg-struct-return) * 218 K (cc V5.6-071, -O5). * 226 K (cc.alt V5.7-566, -O5). * 227 K (cc.alt2 T5.8-005, -O5). Here's some more with a different program: ------------------------------------------------------------------------------ Iterations per second with version 1.02 on 500 MHz Personal Workstations. Compiled On Ran on DU4 Ran on Linux ================================================ cc DU4 344 K 344 K cc.alt DU4 366 K 365 K cc.alt2 DU4 375 K 377 K gcc DU4 385 K 370 K gcc Linux N/A 388 K ------------------------------------------------------------------------------ These were on some record-breaking humongous calculations and I optimised the bejeezus out of the code. It pays to try a bunch of compilers and flags and pick the best. My impression is that code written for other chips and "ported" to the Alpha with no rewriting fairs well under DEC cc and badly under gcc. However code written with RISC-isms and Alpha-isms in mind shows little difference apart from the scheduling mentioned above. Rob.