From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3e10dbc776740ba1 X-Google-Attributes: gid1164f8,public X-Google-Thread: fb9cd,3e10dbc776740ba1 X-Google-Attributes: gidfb9cd,public X-Google-Thread: 110292,3e10dbc776740ba1 X-Google-Attributes: gid110292,public X-Google-Thread: f57db,3e10dbc776740ba1 X-Google-Attributes: gidf57db,public From: Peter Mayne Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers. Date: 1997/03/11 Message-ID: <33248B27.1E17@cao.mts.dec.com>#1/1 X-Deja-AN: 224498924 Cache-Post-Path: stevo.stl.dec.com!unknown@nessus.cao.dec.com References: <5g120v$312@news-rocq.inria.fr> <332424A5.71BB@tonys.ecology.umn.edu> Organization: Digital Equipment Corporation Reply-To: Peter.Mayne@cao.mts.dec.com Newsgroups: comp.benchmarks,comp.sys.intel,comp.sys.dec,comp.os.ms-windows.nt.misc henley wrote: > Excellent! As I said, I did not spend any time optimizing the numerical > routines for any machine, I was working on the algorithm. I used to > use register and const keywords, but I thought modern compilers > were beyond that... wow. Thanks for your comments. Modern compilers probably are beyond "register", but not "const". In a function argument, const might indicate that a variable can't be aliased, which means that the compiler can then make assumptions that it couldn't usually make, and optimise accordingly (like load it into a register instead of leaving it in memory). There was a discussion about aliasing and its affect on code optimisation recently in comp.arch. -- PJDM Digital Equipment Corporation (Australia), Canberra, ACT ------------------------------------------------------------------------------- These are my opinions, and have nothing to do with Digital. This was typed by an infinite number of monkeys.