From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f57db,f679b04ea72eb590 X-Google-Attributes: gidf57db,public X-Google-Thread: 100cc1,f679b04ea72eb590 X-Google-Attributes: gid100cc1,public X-Google-Thread: 110292,f679b04ea72eb590 X-Google-Attributes: gid110292,public X-Google-Thread: 130a22,f679b04ea72eb590 X-Google-Attributes: gid130a22,public X-Google-Thread: 166167,f679b04ea72eb590 X-Google-Attributes: gid166167,public X-Google-Thread: 1164f8,f679b04ea72eb590 X-Google-Attributes: gid1164f8,public From: mschmit@ix.netcom.com (Mike Schmit) Subject: Re: DEC 5000/133 vs Pentium Date: 1995/05/16 Message-ID: <3pan2q$9sl@ixnews3.ix.netcom.com>#1/1 X-Deja-AN: 102708817 distribution: world references: <3mkrhi$88l@larch.cc.swarthmore.edu> <3n3h21$a47@inews.sc.intel.com> <3n9dkf$lsj@helena.MT.net> <3om9kl$mjt@onramp.arc.nasa.gov> <3p8tvb$gsc@onramp.arc.nasa.gov> organization: Netcom newsgroups: _swat.announce.cc,_trico.computing.sysadmins,comp.unix.pc-clone.32bit,comp.sys.dec,comp.sys.intel,comp.benchmarks In <3p8tvb$gsc@onramp.arc.nasa.gov> lamaster@viking.arc.nasa.gov (Hugh LaMaster) writes: > >Apologies for following up my own post. Since >nobody posted to explain why I am being so naive, >I thought I should ask the same question again: > >In article <3om9kl$mjt@onramp.arc.nasa.gov>, >lamaster@viking.arc.nasa.gov (Hugh LaMaster) writes: > >|> Why not just run some codes which show big performance >|> differences between the Pentium and 486 code, profile the >|> code on each architecture and compiler, find some >|> likely-looking lines of code, and look at what differences >|> there are in the generated code. Given the announced >|> capabilities of the Pentium, these ought to be things >|> like how to pack 128-bit chunks of instructions so that >|> they execute in the minimum number of cycles. Obvious >|> optimizations might be trying to pack combinations of >|> address-generating, loads/stores, and FPU instructions. >|> If you pack them the same way as the Pentium-optimized >|> compiler does, you ought to get the same benefit. >|> >|> Anybody (who hasn't read the NDA) tried this and come up >|> with anything useful? I'm being naive, no doubt, but >|> this kind of thing has been puzzled out before (I won't >|> even call it reverse-engineering; more like imitate >|> success and see what happens...) > >Still wondering if anybody out there playing around >with gcc or whatever [no NDA information please!] has >been able to play around with optimization and get a >decent Pentium boost over code optimized for a 486. >If so, what is the magic? ^^^^^^^^^^^^^^^^^^^^^^^^ No magic, most likely. There are 2 simple things that a Pentium-aware compiler can do that will show a significant improvement over a 386/486 type compiler. The first is to re-arrange instructions so that pipeline pairing occurs, according to the Pentium pairing rules. The second thing is to eliminate AGI delays (address generation interlocks). The 486 has these too, but only the previous instruction can cause one. On the Pentium it is possible for an instruction to cause an AGI 3 instructions away. Even mild application of these techniques can provide a good performance boost. Mike Schmit ------------------------------------------------------------------- mschmit@ix.netcom.com author: 408-244-6826 Pentium Processor Programming Tools 800-765-8086 ISBN: 0-12-627230-1 -------------------------------------------------------------------