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: f9b51,c041d60c5ac9906 X-Google-Attributes: gidf9b51,public X-Google-Thread: 111c93,c041d60c5ac9906 X-Google-Attributes: gid111c93,public From: Tom Payne Subject: Re: Alpha vs Pentium II Date: 1998/06/22 Message-ID: <6mm40j$drc$1@skylark.ucr.edu>#1/1 X-Deja-AN: 365029987 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> 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: : We're doing some fairly aggressive coding on our alpha 533 and with our : initial results found that our code didn't go particularly fast so we : started delving into the assembler to see what was happening, now we : know what to do we have gone back to the C code, straightened it out and : recompiled with egs1.03a -O2 and the code is much faster than : previously, approximately twice as fast as it was before. : The lesson from this is even in C you need to be aware of how a : processor and compiler work if you really want your code to cook. True : for the Pentium too but you have a lot more room to work on an alpha. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ If I understand correctly, like the original Pentium, the Alpha 21164 is multi-issue but doesn't do any on-the-fly code reordering, and therefore the amount of parallelism it can achieve is very sensitive to the code order chosen by the compiler. Apparently, gcc doesn't orders it code to miniimize register pressure and doesn't pay a lot of attention to opportunities for parallel issue of instructions. The Pentium Pro and Pentium II, however, do their own reordering, and we found that, while gcc-generated code did not enjoy the predicted speedup when going from a 486 to a Pentium, it got more than the expected speedup when going from a Pentium to a Pentium Pro. I'm told that the Alpha 21264 does on-the-fly reording, so I'd expect it to show a very large speedup on gcc-generated code. Tom Payne