GNU Fortran

Zack Weinberg zack@rabi.columbia.edu
Fri Jan 22 14:21:00 GMT 1999


On 22 Jan 1999 17:59:43 +0000, Dave Love wrote:
>>>>>> "Ray" == Ray Nachlinger <ray@ultramarine.com> writes:
>
> Ray>    For many problems, G77 is faster, but when doing heavy duty
> Ray>    math G77 is horrible. Seems to be the math library (sqrt,
> Ray>    sin, cos, log, exp).
>
>With which compiler and options are you comparing?

The Sun unbundled Fortran compiler has a hyper-optimized special math
library.  It might be worth trying something like this when linking:

g77 prog.o -lg77 -L/opt/SUNWspro/lib -lsunmath -lm

see if that helps.  (You might also need to add -R/opt/SUNWspro/lib.)

Also, what's your platform?  Tuning for the right processor can be a
big win on Sparcs.

zw



More information about the Gcc-bugs mailing list