Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: neideck@bier.kar.dec.com (Burkhard Neidecker-Lutz)
Subject: Re: Optimization on ALPHA OSF1 ??
Date: 27 Jan 1994 13:39:15 GMT	[thread overview]
Message-ID: <2i8g63INNcsu@usenet.pa.dec.com> (raw)
In-Reply-To: GARY.94Jan24172340@gog.dfci.harvard.edu

In article <GARY.94Jan24172340@gog.dfci.harvard.edu> gary@gog.dfci.harvard.edu (Gary Beckmann) writes:
>I've been fooling around with some very simple minded benchmarks for
>the people I work for, and I've noticed that compiling the program
>with -O  _slows_ down the loops doing floating point operations.  I
>get a factor of about 0.7 speedup

Gary was kind enough to let me have a look at his code and there are
two points to it:

a) The program spends more than half of it's cycles in *integer* division.
   First, this is a library routine on Alpha and a hardware instruction
   on MIPS, hence the difference is understandable. Optimization doesn't
   affect that part, because the libaries are the same regardless what
   flags you use.

b) The program just happens to trash the 8 Kbyte direct mapped I-cache
   with the particular release of compiler and OS (V1.3). With V2.0
   compilers the speedups where as expected (but then , other programs
   may exhibit that behaviour, as with any direct mapped instruction
   cache).

Therefore, the program just happens to be one of the one-in-a-thousand
time I-cache trashers, plus it's not measuring the speed of floating
point.

		Burkhard Neidecker-Lutz

Distributed Multimedia Group, CEC Karlsruhe  
BERKOM II Project
Digital Equipment Corporation
neideck@nestvx.enet.dec.com


      reply	other threads:[~1994-01-27 13:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-24 22:23 Optimization on ALPHA OSF1 ?? Gary Beckmann
1994-01-27 13:39 ` Burkhard Neidecker-Lutz [this message]
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