From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,c041d60c5ac9906 X-Google-Attributes: gid1103af,public X-Google-Thread: 102b32,c041d60c5ac9906 X-Google-Attributes: gid102b32,public X-Google-Thread: 111c93,c041d60c5ac9906 X-Google-Attributes: gid111c93,public X-Google-Thread: f9b51,c041d60c5ac9906 X-Google-Attributes: gidf9b51,public From: S S Sturrock Subject: Re: Alpha vs Pentium II Date: 1998/06/24 Message-ID: <3590D791.747@holyrood.ed.ac.uk>#1/1 X-Deja-AN: 365605034 Content-Transfer-Encoding: 7bit References: <7702308E7DD72BE1.D5C0D24C5E4A105B.0BFAE93A10527F86@library-proxy.airnews.net> <6m386v$b3s$1@salomon.mchp.siemens.de> <6m99p4$ln6$1@mamenchi.zrz.TU-Berlin.DE> <6mf57o$eki$11@blue.hex.net> <6mfjtk$gsq$1@tesla.EECS.Berkeley.EDU> <358E14FE.6015@holyrood.ed.ac.uk> <6mm40j$drc$1@skylark.ucr.edu> <358F8AA5.36D4@holyrood.ed.ac.uk> <35901F42.B81BFE6@frankfurt.netsurf.de> Content-Type: text/plain; charset=us-ascii Organization: ICMB, University of Edinburgh Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha,comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.setup Joachim Wesner wrote: > > Currently we are using egcs 1.03a compiled for 21164 with Haifa > > instruction reordering. -O2 optimisation seems to do the best job w > > Sounds interesting. What the hell is 'Haifa instruction reordering' ???? > > Must be some kind of patch to the code generator pass of egcs !!?? Its there in 1.03a, download the source and compile it with haifa enabled. A bit more playing shows a little more improvement with O3 which is interesting because before we fine tuned the C code for the alpha anything above O1 actually went slower! While the compiler should be capable of doing a good job with your code it really is important to write your C as well as you possibly can, compilers aren't perfect and they aren't psychic. Of course, we are still finding things in the assembler output which while fine for general purpose code we can do better by optimising at the assembler level. We couldn't code these optimisations in C and wouldn't expect the compiler to be able to do this. -- Dr. Shane Sturrock - sss@holyrood.ed.ac.uk kernel: Calibrating delay loop.. ok - 529.53 BogoMIPS Mmmmmmmmmmm :-)