From: Bernd Paysan <bernd.paysan@gmx.de>
Subject: Re: 21264 performance anomalies
Date: 1999/04/18 [thread overview]
Message-ID: <371A0B6C.4E678E8@gmx.de> (raw)
In-Reply-To: 3715f75f.0@news.destek.net
Dave Cherkus wrote:
>
> Erik Corry (erik@arbat.com) wrote:
> >
> > Why 'unfortunately'? Has this feature limited gcc's portability?
> >
>
> It surely makes it hard to compile code written using this construct
> with compilers other than gcc. I've been told that the only compiler
> that can compile the Linux kernel code is gcc/egcs. It'd be nice to
> see if the upcoming Compaq Alpha compilers for Linux produce a faster
> kernel, but I've been told the work involved in eliminating/recoding
> gcc constructs is huge.
But adding this GCC feature to any other C compiler should be pretty
trivial, what? This is the "don't fix your app, fix your compiler"
approach. GCC has so many valuable extensions that are needed to write
efficient code, and labels as values is just one of them - Linux uses
others. So maybe recoding Linux might lead to compilable code on
DECpaq's compiler, but it doesn't necessarily mean that this code will
run faster.
Well, IMHO the whole thing is all the wrong approach. The Alpha compiler
team should better improve GCC instead of trying to port Linux over to a
non-GCC compiler.
But back to the topic: The effect of the instructions in the 16 byte
chunk before the label target is easy to explain: obviously the 21264
just executes all of them, and cancels those that shouldn't have been
executed - that takes time. The other effect is also understandable:
it's just like the Pentium doesn't like back-to-back branches, and when
you move the jump into the next chunk, it's not a back-to-back branch.
GCC has some simple hooks to define alignments of branch targets, the
pgcc makes use of that, too; setting them to 16 bytes (and padding with
nops) should be easy. I don't know if it also allows padding of jumps,
but after all emiting a .align per jump should be not so difficult. With
ELF, these alignments actually work.
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/
next prev parent reply other threads:[~1999-04-18 4:00 UTC|newest]
Thread overview: 114+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-06 4:00 Compaq to port its Fortran and C compilers to Alpha Linux Steve Lionel
1999-04-07 4:00 ` NewsMan
1999-04-06 4:00 ` Jeffrey J. Potoff
1999-04-06 4:00 ` Ron Flory
1999-04-07 4:00 ` Paul English
1999-04-07 4:00 ` Dave Cherkus
1999-04-07 4:00 ` essoft
1999-04-08 4:00 ` bmeyer
1999-04-09 4:00 ` Richard Heathfield
1999-04-09 4:00 ` Dave Cherkus
1999-04-07 4:00 ` Greg Lindahl
1999-04-07 4:00 ` Ben Pfaff
1999-04-07 4:00 ` Jeffrey J. Potoff
1999-04-07 4:00 ` Greg Lindahl
1999-04-07 4:00 ` Toon Moene
1999-04-08 4:00 ` Anton Ertl
1999-04-08 4:00 ` Toon Moene
1999-04-08 4:00 ` James D. Freels
1999-04-09 4:00 ` Greg Lindahl
1999-04-11 4:00 ` Michal Jaegermann
1999-04-08 4:00 ` 21264 performance anomalies (was: Compaq to port ...) Anton Ertl
1999-04-09 4:00 ` P Dickerson
1999-04-09 4:00 ` Anton Ertl
1999-04-10 4:00 ` Bruce Hoult
1999-04-14 4:00 ` 21264 performance anomalies Robert Herndon
1999-04-14 4:00 ` Dennis Ritchie
1999-04-15 4:00 ` Erik Corry
1999-04-15 4:00 ` Dave Cherkus
1999-04-15 4:00 ` Erik Corry
1999-04-15 4:00 ` Dave Cherkus
1999-04-15 4:00 ` Linus Torvalds
1999-04-15 4:00 ` Jim Gettys
1999-04-15 4:00 ` Dave Cherkus
1999-04-18 4:00 ` Bernd Paysan [this message]
1999-04-18 4:00 ` How hard would it be to improve gcc's performance to match DEC CC? Peter Mardahl
1999-04-19 4:00 ` TTK Ciar
1999-04-19 4:00 ` 21264 performance anomalies Dave Cherkus
1999-04-20 4:00 ` Larry Kilgallen
1999-04-21 4:00 ` Bernd Paysan
1999-04-21 4:00 ` Greg Lindahl
1999-04-22 4:00 ` Terje Mathisen
1999-04-22 4:00 ` Greg Lindahl
1999-04-22 4:00 ` Jan Vorbrueggen
1999-04-22 4:00 ` Larry Kilgallen
1999-04-22 4:00 ` Paul DeMone
1999-04-23 4:00 ` Jan Vorbrueggen
1999-04-23 4:00 ` Paul DeMone
1999-04-24 4:00 ` Zalman Stern
1999-04-23 4:00 ` Donald C. Lindsay
1999-05-09 4:00 ` TTK Ciar
1999-05-11 4:00 ` Peter Mayne
1999-04-22 4:00 ` Fred Kleinsorge
1999-04-22 4:00 ` Thomas Womack
1999-04-22 4:00 ` John Pieper
1999-04-19 4:00 ` peter
1999-04-20 4:00 ` Larry Kilgallen
1999-04-22 4:00 ` Anton Ertl
1999-04-16 4:00 ` first-class labels (was: 21264 performance anomalies) Anton Ertl
1999-04-15 4:00 ` 21264 performance anomalies amos
1999-04-11 4:00 ` 21264 performance anomalies (was: Compaq to port ...) Michael Gschwind
1999-04-11 4:00 ` 21264 performance anomalies Donald C. Lindsay
1999-04-12 4:00 ` Justin Carlson
1999-04-14 4:00 ` Anton Ertl
1999-04-14 4:00 ` Justin Carlson
1999-04-14 4:00 ` Jan Vorbrueggen
1999-04-09 4:00 ` Compaq to port its Fortran and C compilers to Alpha Linux bmeyer
1999-04-09 4:00 ` Anton Ertl
1999-04-09 4:00 ` Jim Gettys
1999-04-09 4:00 ` Jim Gettys
1999-04-09 4:00 ` Anton Ertl
1999-04-09 4:00 ` Toon Moene
1999-04-09 4:00 ` Jim Gettys
1999-04-08 4:00 ` Keith Higgs
1999-04-07 4:00 ` Peter Mardahl
1999-04-07 4:00 ` bmeyer
1999-04-07 4:00 ` Jim Klein
1999-04-09 4:00 ` Daniel Barker
1999-04-10 4:00 ` Phillip Helbig
1999-04-10 4:00 ` Christopher B. Browne
1999-04-10 4:00 ` James D. Freels
1999-04-11 4:00 ` Christopher B. Browne
1999-04-11 4:00 ` Zane H. Healy
1999-04-11 4:00 ` James Van Buskirk
1999-04-11 4:00 ` Greg Lindahl
1999-04-12 4:00 ` Glenn C. Everhart
1999-04-19 4:00 ` Bob Koehler
1999-04-19 4:00 ` Jim Reiss
1999-04-12 4:00 ` James Van Buskirk
1999-04-14 4:00 ` Greg Lindahl
1999-04-12 4:00 ` Robert Harley
1999-04-12 4:00 ` Phillip Helbig
1999-04-12 4:00 ` Greg Lindahl
1999-04-12 4:00 ` Richard Levitte - VMS Whacker
1999-04-11 4:00 ` Greg Lindahl
1999-04-11 4:00 ` Toon Moene
1999-04-07 4:00 ` Gary Scott
1999-04-07 4:00 ` Toon Moene
1999-04-07 4:00 ` Steve Lionel
1999-04-07 4:00 ` Peter Mardahl
1999-04-07 4:00 ` Ron Flory
1999-04-07 4:00 ` Helmut Katzgraber
1999-04-08 4:00 ` Steve Lionel
1999-04-08 4:00 ` Helmut Katzgraber
1999-04-08 4:00 ` Steve Lionel
1999-04-09 4:00 ` Dave Cherkus
1999-04-09 4:00 ` Steve Lionel
1999-04-09 4:00 ` Christopher B. Browne
1999-04-08 4:00 ` Udo Klasmeier
1999-04-09 4:00 ` Jacob Gladish
1999-04-10 4:00 ` Phillip Helbig
1999-04-10 4:00 ` Christopher B. Browne
1999-04-15 4:00 ` Jim Gettys
1999-04-12 4:00 ` Christian Simmendinger
1999-04-15 4:00 ` Dr. Scott A. Furman
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