From: gwelsh@insystems.com.remove-this (Geoffrey Welsh)
Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
Date: 1997/03/13 [thread overview]
Message-ID: <5g9die$oa3@news1.pritel.net> (raw)
In-Reply-To: 5g120v$312@news-rocq.inria.fr
(posted and mailed)
On 10 Mar 1997 13:23:43 GMT, in comp.os.ms-windows.nt.misc,
harley@pauillac.inria.fr (Robert Harley) wrote:
>Why do people so frequently write code with an Intel model (or
>whatever) in mind, then compile it on Alpha without even putting in
>the slightest effort to adapt it and then claim that their CPU can
>beat an Alpha? I have seen this several times and in each case that
>source was available it was trivial to make even a medium Alpha win by
>a wide margin.
>
>Presumably this happens to other way around too i.e., people write
>code assuming that lots of big registers are available and then it
>crawls when naively ported to an Intel processor.
Because the compiler is supposed to take care of those details. If
you want to control every last detail of the machine code, write in
assembler... or just accept that this is a compromise of writing in a
'portable' high-level language!
The default variable qualifier in C is "auto", i.e. put it in a
register if you can; even "register" is only a recommendation and, if
I take code with too many "register" definitions, an Intel-based
compiler should 'demote' as many of them as necessary... only the
"volatile" qualifier should have absolutely guaranteed performance
(the fact that older MS compilers ignored the keyword entirely
notwithstanding).
Similarly, how frequently accessed constants (which is what I think
you tweaked) are best handled on any given architecture should also be
up to the compiler.
These days programmers seem to be in such a rush to bring features to
market that they don't have time to remove the bugs first; how many
have the time to figure out whether they're saving cycles or wasting
them on umpteen different architectures when using more registers and
increasing the number that must be saved in entry/exit code?!?
---
Geoffrey Welsh, MIS Co-ordinator, InSystems Technologies Inc.: gwelsh@insystems.com
UNSOLICITED ADVERTISING TO THIS ADDRESS IS STRICTLY FORBIDDEN.
next prev parent reply other threads:[~1997-03-13 5:00 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-10 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
1997-03-10 5:00 ` H.W. Stockman
1997-03-10 5:00 ` henley
1997-03-11 5:00 ` henley
1997-03-12 5:00 ` henley
1997-03-12 5:00 ` Chris Ruemmler
1997-03-13 5:00 ` Paul DeMone
1997-03-14 5:00 ` Chris Ruemmler
1997-03-14 5:00 ` Paul DeMone
1997-03-14 5:00 ` Peter Mayne
1997-03-14 5:00 ` William J. Burlingame
1997-03-14 5:00 ` Chris Ruemmler
1997-03-14 5:00 ` H.W. Stockman
1997-03-14 5:00 ` Charles Hedrick
1997-03-10 5:00 ` henley
1997-03-11 5:00 ` dick'circle-a'buckosoft'dot'com
1997-03-11 5:00 ` Peter Mayne
1997-03-10 5:00 ` H.W. Stockman
1997-03-12 5:00 ` Peter Mayne
1997-03-13 5:00 ` Geoffrey Welsh [this message]
1997-03-15 5:00 ` Achim Gratz
1997-03-15 5:00 ` henley
[not found] ` <332b221b.1501158@news.jussieu.fr>
1997-03-16 5:00 ` henley
1997-03-16 5:00 ` henley
1997-03-16 5:00 ` henley
1997-03-17 5:00 ` Paul DeMone
1997-03-17 5:00 ` henley
1997-03-17 5:00 ` Achim Gratz
1997-03-17 5:00 ` Peter Mayne
-- strict thread matches above, loose matches on Subject: below --
1997-03-12 5:00 Robert Harley
1997-03-12 5:00 ` henley
1997-03-13 5:00 ` Loesche
1997-03-15 5:00 ` Martin T. Griffin
1997-03-16 5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers Paul Repacholi (prep)
1997-03-16 5:00 ` henley
1997-03-17 5:00 ` Ben Myers
1997-03-06 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers henley
1997-03-09 5:00 ` Zlatko Calusic
1997-03-09 5:00 ` henley
1997-03-11 5:00 ` Mike Greaves
1997-03-26 5:00 ` James Mansion
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox