From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,d1ff17820abd94f8 X-Google-Attributes: gid111c93,public From: Eberhard Burr Subject: Re: poor gcc performance Date: 1999/09/18 Message-ID: <879064tykr.fsf@gmx.de>#1/1 X-Deja-AN: 526638703 References: <7ru944$r8e$1@nnrp1.deja.com> X-Server-Date: 18 Sep 1999 08:26:28 GMT Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@rz.uni-karlsruhe.de X-Trace: news.rz.uni-karlsruhe.de 937647012 2097 129.13.216.69 X-Face: 2:,sX1r0xdA[z_iePptW'G?^2L=*gWY0nw*:*PA>=!#c7C?zFR@uZY#ZT_ZuIt?1*aed.rC m!?L%Z>v/\W:$=2kJh+F*]i]`q^p2!WUuRdL4b-?|%K-ig%xV1/KUShOF05kd:/:W7\@#v(R"N*xF6 Tmo&V+q+tjOmN=S~T5p`|n Organization: alpha, beta, crash. Mime-Version: 1.0 (generated by tm-edit 7.108) Newsgroups: comp.os.linux.alpha 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 -- electric cookie follows Halley's Comet: It came, we saw, we drank.