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: Tom Payne Subject: Re: Alpha vs Pentium II Date: 1998/06/23 Message-ID: <6mos2d$6j3$1@skylark.ucr.edu>#1/1 X-Deja-AN: 365380787 References: <35863291.583249@news.uunet.be> <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> Organization: Dept. of Computer Science, UCR Newsgroups: comp.os.linux.alpha,comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.setup In comp.os.linux.misc S S Sturrock wrote: [...] : 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. The sort of things mentioned above should be done by the compiler. A decade ago, gcc produced code that was quite fast relative to most commercial compilers, but commercial compilers have improved a lot and much of the improvement has come from architecture-specific optimizations. Apparently egcs will incorporate a lot of improvements that never made it into gcc. I'm told that incorporating architecture-specific optimizations into a portable compiler poses some difficult problems. Tom Payne