Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!sun-barr!rutgers!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.misc Subject: Re: Aggressive optimization Message-ID: <2133:Nov607:16:1090@kramden.acf.nyu.edu> Date: 6 Nov 90 07:16:10 GMT References: <2301@wn1.sci.kun.nl> <4950@avocado5.UUCP> Organization: IR Lines: 14 In article <4950@avocado5.UUCP> wallach@motcid.UUCP (Cliff H. Wallach) writes: > In article ted@nmsu.edu (Ted Dunning) writes: > -if you compile the following code on a sun3 with -O4, [ compiled array code ] [ obviously faster hand code ] I observe that when I convert the original code into pointer code, the compiler produces very similar results to the hand version. Sure, Jim. Arrays are as efficient as pointers. Uh-huh. Now I know why all my array code has always seemed so slow on Suns. ---Dan