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: 111c93,c041d60c5ac9906 X-Google-Attributes: gid111c93,public X-Google-Thread: 102b32,c041d60c5ac9906 X-Google-Attributes: gid102b32,public X-Google-Thread: f9b51,c041d60c5ac9906 X-Google-Attributes: gidf9b51,public From: S S Sturrock Subject: Re: Alpha vs Pentium II Date: 1998/06/23 Message-ID: <358F8AA5.36D4@holyrood.ed.ac.uk>#1/1 X-Deja-AN: 365272375 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> 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 Having asked a number of questions and read a lot of Digital architectural documents we have found ways of making the 21164 processor perform very well. Currently we are using egcs 1.03a compiled for 21164 with Haifa instruction reordering. -O2 optimisation seems to do the best job with our code whereas when using previous versions of gcc we were having to do manual assembler tweaking and getting 30-40% speedup, now the tweaks we have to do are pretty minimal and only gain about 10% over what egcs is putting out. You should look at your C code and try and maximise use of registers and reduce loads and stores (this is basic stuff but quite often missed) and if you really want to be using both pipelines you will need to worry about things like logical shifts and stores which only go down specific pipelines and you can often stall the processor if it all goes to pot. While I think the 21264 processor will help a lot with bad code I don't think we should just let the processor do all the work as a little extra effort in coding will make a world of difference in performance on any alpha, even my humble UDB. -- Dr. Shane Sturrock - sss@holyrood.ed.ac.uk kernel: Calibrating delay loop.. ok - 529.53 BogoMIPS Mmmmmmmmmmm :-)