Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.misc Subject: Re: Aggressive optimization Message-ID: <6735:Nov720:38:4890@kramden.acf.nyu.edu> Date: 7 Nov 90 20:38:48 GMT References: <4950@avocado5.UUCP> <2133:Nov607:16:1090@kramden.acf.nyu.edu> <1990Nov6.224410.15068@murdoch.acc.Virginia.EDU> Organization: IR Lines: 11 In article <1990Nov6.224410.15068@murdoch.acc.Virginia.EDU> gl8f@astsun.astro.Virginia.EDU (Greg Lindahl) writes: > In article <2133:Nov607:16:1090@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > >I observe that when I convert the original code into pointer code, the > >compiler produces very similar results to the hand version. > Maybe you should have tried gcc -- it does quite a bit better than cc > on this simple exaple, *which includes no alias possibilties*. Weird, you're right. gcc does a lot better on array code. Sun, would you please make the obvious additions to your optimizer? ---Dan