Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!mintaka!think.com!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!mcnc!uvaarpa!murdoch!astsun.astro.Virginia.EDU!gl8f From: gl8f@astsun.astro.Virginia.EDU (Greg Lindahl) Newsgroups: comp.lang.misc Subject: Re: Whether cc after f2c can optimize arrays as well as f77 can Message-ID: <1990Nov16.042408.21235@murdoch.acc.Virginia.EDU> Date: 16 Nov 90 04:24:08 GMT References: <23333:Nov904:43:1390@kramden.acf.nyu.edu> <5483@lanl.gov> <6787:Nov1008:04:0290@kramden.acf.nyu.edu> Sender: news@murdoch.acc.Virginia.EDU Organization: Department of Astronomy, University of Virginia Lines: 14 In article <6787:Nov1008:04:0290@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > The fact is that C array code can run >as quickly as Fortran array code, even if the C compiler doesn't know >beforehand that there's no aliasing. The fact is that you had to hand-optimize to get C to do my example fast. > I'm not saying that either language >is perfect; just that Fortran doesn't have a big advantage over C here. The fact is that not having to hand-optimize is an advantage. See what I mean, Dan?