Fortran compiler strangeness

Tobias Schlüter Tobias.Schlueter@physik.uni-muenchen.de
Wed May 9 16:03:00 GMT 2007


Thomas Koenig wrote:
> I tried to reproduce your example on an Athlon XP, but the
> execution times were almost identical, so this appears to
> be platform-specific.  What is the output, on your system,
> of "gfortran -v" ?

One possible cause of the slowdown may be that Stefano's platform 
doesn't provide a C99 library in which case the single precision sin 
will go through a thunk (see c99_functions.c), which by itself possibly 
takes longer than the double precision calculation (which still has to 
be done) by itself would.

- Tobi



More information about the Fortran mailing list