From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: Lus paa tjaerekost (or molasses in january)
Date: Mon, 11 Nov 1996 15:21:25 -0600 (CST) [thread overview]
Message-ID: <2f1c0486e5b0b98029a6130a141ed9e7.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.91.961111175825.20763B-100000@linux.cs.Helsinki.FI>
> The reason it looks comparable to a 200MHz Pentium is mainly because you
> compare different things. The compiler may be similarly named, but compiling
> for x86 and compiling for alpha are pretty different things. Gcc is for some
> reason much slower on the alpha than on an x86. My personal guess is that
> there is either some instruction scheduling issue or some O(exp(n)) routine
> wrt number of registers or similar.
There are two killers that I know of:
-- The bits that try to convert to conditional moves has a bad
exponential worst case, that isn't really that uncommon in largish
functions. Some of you may remember an example posted here some
months ago (extracted from the X server I believe) that took > 20
minutes to compile.
-- Quite a bit of effort goes into figuring out how to load
constants > |32k|.
Aside from that, I'm pretty sure instruction scheduling is an O(n**2)
algorithm; I've not looked at the register allocation bits.
Anyway, none of these is an issue with the standard i386 compiler.
If you use the pentium gcc, you'll encounter the conditional move
problem and the instruction scheduling problem (though not as bad).
> And yes, I think it's sad too, as compiling is what I do most. The alpha
> does make it up in other areas, but it's still sad..
Sad, but I'd have to say somewhat unavoidable for highly optimized
code, as so many of the optimizations require exhaustive searches
for pattern matches. It would be interesting to see what could be
changed to make -O quicker, and let -O2 continue to chug along....
r~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1996-11-11 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.91.961111175825.20763B-100000@linux.cs.Helsinki.FI>
1996-11-11 16:21 ` Re[2]: Lus paa tjaerekost (or molasses in january) Mark Hamstra
1996-11-11 21:21 ` Richard Henderson [this message]
2016-11-11 10:51 Johan Grape
[not found] <201611111051.DAA02602@asgard.dartmouth.edu>
1996-11-11 16:06 ` Linus Torvalds
1996-11-11 17:44 ` Jim Nance
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