Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!world!madd From: madd@world.std.com (jim frost) Newsgroups: comp.unix.aix Subject: Re: Rumour about IBM benchmarks Message-ID: <1990Sep18.164944.7272@world.std.com> Date: 18 Sep 90 16:49:44 GMT References: <1233@torsqnt.UUCP> <1990Sep17.133400.18668@siia.mv.com> Organization: Saber Software Lines: 30 wje@siia.mv.com (Bill Ezell) writes: >In <1233@torsqnt.UUCP> david@torsqnt.UUCP (David Haynes) writes: >>I have heard a rumour that the benchmark results that IBM posted for >>their RS6000 system were the results of hand-coded, hand-optimized... >This would seem unlikely to me. According to IBM (a perhaps suspect source) >their C compiler 'consistently produces code better than hand-coded assembler'. >This isn't too surprizing when you consider that the compiler is tailored >to generate instructions to take advantage of the pipelining inherent >in the processor, a tedious process at best when done by hand. Actually the compiler doesn't do as good a job as you might think, although there's no doubt in my mind that it does a better job on a large project than you could do when hand-coding. One thing it doesn't seem to try very hard to do is instruction scheduling -- moving cmp instructions away from branch instructions so that the branches execute in zero cycles, for instance. This is surprising since zero-cycle branches are a nice feature of the system. I haven't gone out of my way to see just which optimizations it does well or poorly at, but it does seem like the compiler could do a bit better. Happy hacking, jim frost saber software jimf@saber.com