From: Eberhard Burr <Eberhard.Burr@gmx.de>
Subject: Re: poor gcc performance
Date: 1999/09/18 [thread overview]
Message-ID: <879064tykr.fsf@gmx.de> (raw)
In-Reply-To: 7ru944$r8e$1@nnrp1.deja.com
will239@my-deja.com writes:
> Specfp95 indicates that an alpha 21164A 533 should be a bit more than
> twice as fast as a celeron 333. With some of my own fp source code and
> the gcc compiler I am getting them to be more like equals. I have
> downloaded and installed the fast math libraries for the alpha (libfm).
> Also, I set the compile options as follows:
>
> CC = gcc
>
> OPTSPENT = -O2 -mpentium \
> -fomit-frame-pointer -fno-strength-reduce -pipe -malign-loops=2 \
> -malign-jumps=2 -malign-functions=2 -fshort-enums -fno-common
>
> OPTSALPHA = -O2 -mcpu=ev56 \
> -fomit-frame-pointer -fno-strength-reduce -pipe \
> -fshort-enums -fno-common
>
>
> Is this expected performance or can I do better? I know there is a beta
> c compiler from compaq but I really need c++ for most of my work.
In a different thread (~1 week ago), i wrote something about ieee and
arithmetic exceptions. I've now experimented some more and found the
following:
o the performance hit one gets from using the -mieee flag with gcc
depends largely on the sort of fp one is doing: with tons of
simple arithmetic like multiplications and subtractions, the hit
can be considerable while with more complex things like sine and
exponentials, it's not much.
o compaq's libcpml is _fast_ and does the right thing wrt to
arithmetic exceptions. I've put that lib in place, compiled with
gcc -mieee -lcpml and now my SX164 533 blows away all pentia[1]. (My
code mainly consumes time in a rather small loop with lots of
cos() exp() and the like)
o given the fact above, I've changed my mind wrt to exception
handling; I'm now using the -mieee flag and gcc since I have yet
to get ccc to compile my main application (Khoros image
manipulation from www.khoral.com if that matters).
[1] well, at least all that I have access to. Fastest of them is a
dual P3-450 where the main loop of my code is not parallelized;
the SX is still about 1.5 times faster.
The problem that I still have is that ccc gives me unresolved symbols
in some places. (__builtin_next_arg and the like; I guess, I still
don't have all the libs in place or am missing some includes... )
kind Regards,
--
Eberhard Burr check http://www.uni-karlsruhe.de/~Eberhard.Burr/publickey.asc
for PGP Key -- #include <stddisc.h> -- electric cookie follows
Halley's Comet: It came, we saw, we drank.
next prev parent reply other threads:[~1999-09-18 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-17 4:00 poor gcc performance will239
1999-09-17 4:00 ` Matthew R. Pavlovich
1999-09-17 4:00 ` Greg Lindahl
1999-09-18 4:00 ` Eberhard Burr [this message]
1999-09-22 4:00 ` Johannes Nix
1999-09-23 4:00 ` William Snyder
1999-09-24 4:00 ` Greg Lindahl
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