Article View: gnu.gcc.help
Article #51900Re: C compiler to use coprocessor capabilities on Sparcs
From: Marek MAKOWSKI
Date: Fri, 19 Mar 1993 10:12
Date: Fri, 19 Mar 1993 10:12
34 lines
2072 bytes
2072 bytes
Michal Szymanski (msz@astro.Princeton.EDU) wrote:
:
: Is there a C compiler available in public domain (possibly gcc with some
: options) which could use full capabilities of the coprocessor of
: SUn Sparcstations. I have found the cc-compiled numerical programs to
: run much slower than their equivalents written in Fortran and compiled
: with "-cg89" or "-fast" option of the "f77". It seems to me that this is
: a matter of the way they use coprocessor.
:
I have a similar experience, not only with gcc but also with cc (from Sun).
gcc has a flag (-mfpa) which would probably solve the problem
but this flag does not seem to work on Sun Sparc.
There obviously must be a reason for that.
I don't know if it is possible/difficult to modify gcc for making use of a FPU.
Sometime ago I made a comparison between Microsoft C & Fortran for
floating point operations - and Fortran was faster (both using 80x87).
I know that there is no "reasonable" explanation for that.
The problem might be not limited to use of FPU but it would certainly help,
if gcc would use FPU.
I am sure that the problem is of a more general interest.
Please post (or mail me) any info you will get.
Regards,
Marek Makowski
--
Marek Makowski | Email: marek@iiasa.ac.at
International Institute | Phone: +43 02236 71.5210
for Applied System Analysis | Fax: +43 02236 71.313
A-2361 Laxenburg, Austria | Telex: 079137 iiasa a
Technical Details
Message-ID:
<1993Mar19.101219.6300@iiasa.ac.at>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!iiasa.ac.at!marekReferences:
<1993Mar16.111754.12874@Princeton.EDU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ec5e906038492113 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-19 02:12:19 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!iiasa.ac.at!marek From: marek@iiasa.ac.at (Marek MAKOWSKI) Subject: Re: C compiler to use coprocessor capabilities on Sparcs Message-ID: <1993Mar19.101219.6300@iiasa.ac.at> Organization: IIASA, Laxenburg, Austria X-Newsreader: TIN [version 1.1 PL6] References: <1993Mar16.111754.12874@Princeton.EDU> Date: Fri, 19 Mar 1993 10:12:19 GMT Lines: 34