From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,100c510dac09e617 X-Google-Attributes: gid111c93,public From: jwest@jwest.ecen.okstate.edu (Jim West) Subject: Re: MFlops Comparison using g77 (bad news) - bench.tgz (0/1) Date: 1997/09/22 Message-ID: <6060pv$kn6@news.cis.okstate.edu>#1/1 X-Deja-AN: 274662584 References: <5vqs28$3el@news-rocq.inria.fr> <3425c740.24725060@netnews.worldnet.att.net> Organization: Elec. & Comp. Engr., Oklahoma State University Newsgroups: comp.os.linux.alpha In article <3425c740.24725060@netnews.worldnet.att.net>, Luke Lonergan wrote: > > /* Critical performance benefit here! The value of nx is used in the > memory offset calculations and needs to be local to avoid >frequent > reloading and stalls. */ > int nx_r=(*nx); I'm wondering if an optimizing compiler sould pick this up even without the explicit definition of nx_r. Can anyone explain why it wouldn't? jw -- Jim West jwest@jwest.ecen.okstate.edu Associate Professor jwest@master.ceat.okstate.edu Electrical and Computer Engineering Oklahoma State University