From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,64f8df62a7534aa X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: Re: fast array calculation in C Date: 1999/10/18 Message-ID: <380B4825.3F457FD8@ife.ee.ethz.ch>#1/1 X-Deja-AN: 537550562 Content-Transfer-Encoding: 7bit References: <380AE3CA.DE154537@ife.ee.ethz.ch> <7ufdn0$14m9@news2.newsguy.com> Content-Type: text/plain; charset=us-ascii X-Trace: 18 Oct 1999 18:17:41 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Greg Lindahl wrote: > > Alex Rhomberg writes: > > > I didn't say "proof". But I can show you an example (which you can test > > yourself): > > That's an amazing proof. I've never seen a compiler that did that before. > I don't believe gcc does this. It's pretty cool... some comparisons: for o in dies.o*; do wc -c $o; objdump -d $o|~/perl/ugly | grep UGLY | wc -l; objdump -d $o|grep jsr; done 1376 dies.o.ccc 0 2320 dies.o.gcc 20 23c: 00 40 5b 6b jsr ra,(t12),240 gcc code is - bigger - uglier - slower - doesn't inline memcpy ccc code is - cool - fast - cool - small - Alex