[4015] in RedHat Linux List
Re: gcc & numerical computing
daemon@ATHENA.MIT.EDU (James Youngman)
Tue Nov 12 05:16:01 1996
To: redhat-list@redhat.com
From: JYoungman@vggas.com (James Youngman)
Date: 12 Nov 1996 10:12:20 GMT
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
In article <568pkr$ha1@halon.vggas.com>, nielsen@bohr.tn.cornell.edu says...
> How efficient is gcc for numerical computing? I.e. are
>there any other c/c++ compilers for linux that gcc can be compared
>with?
GCC is pretty good. It's pretty good for CISC machines in general. There are
no Pentium optimisations in the production version of GCC, and there is a
special "unofficial" Pentium version of GCC (although -O3 is dangerous). With
the production version of GCC, no instruction scheduling is done so some of the
speed of the code is down to luch (the compiler by chance comes up with a
better or worse instruction ordering).
However the good news is that no doubt an official Pentium version will be
forthcoming and (even better news) the out-of-order instruction execution of
the Pentium Pro is likely to mean that the lack of Pentium instruction
scheduling on the part of GCC is irrelevant for thr PPro.
I have a close friend who has a P100 at home with 32Mb of memory. By day he
develops code for the numerical simulation of microwave antennae (in C++, using
GCC). His code runs in 9m:30 in an HP 735 (PA-RISC, HP's compiler) and in
10m:02 on his Linux box.(P100, G++). I guess that means that GCC's pretty good
for numerical stuff.
His machine cost just over 1000 pounds. I believe the HP machine cost about
70000. All for a difference of 5% too.
There is another C compiler for Linux called "lcc". I suspect (but do not
know) that it is not as fast.
--
James Youngman VG Gas Analysis Systems |The trouble with the rat-race
Before sending advertising material, read |is, even if you win, you're
http://www.law.cornell.edu/uscode/47/227.html|still a rat.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null