> >From memory, Haney published such a comparison between F90, C++ and F77 a
> couple of years ago in Computers In Physics. F77 compilers produced the
> fastest-executing code. However, several of his tests showed C++ quicker
> than F90. A search of their back issues should uncover this article.
I would say that if it's a couple of years ago that the f90
compiler was just not yet optimizing enough.
I made comparisons (very restricted and preliminary ones) with
the HP compilers (f90 1.2 and C pretty recent) for computations
of finite difference schemes. The f90 code was not only easier
to write in 1D 2D and 3D, but also always at least as fast as
the C code. The C code was only as fast as the f90 code when
knowing and applying all appropriate flags (which might or
might not exist on other machines...).
cheers
juergen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|