Fortran vs. C for numerical work (SUMMARY)
Doug McDonald
mcdonald at aries.scs.uiuc.edu
Sat Dec 1 01:56:49 AEST 1990
In article <7339 at lanl.gov> ttw at lanl.gov (Tony Warnock) writes:
>
>
>
> Model Multiplication Time Memory Latency
>
> YMP 5 clock periods 18 clock periods
> XMP 4 clock periods 14 clock periods
> CRAY-1 6 clock periods 11 clock periods
>
> Compaq 25 clock periods 4 clock periods
> Zenith 120 clock periods 30 clock periods
>
> The times on the PC-clones are approximate depending on the type
> of variables being accessed and the sizes of the indices.
>
I don't know what kind of Compaq or Zenith you are using, but
on a 25 or 33 MHz 386 or 486 machine with a 3167 or 4167 floating
point unit the memory latency and FPU multiplication time are
roughly equal. The manuals of the compilers I use say that the
memory accesses slow computations down by up to a factor of two compared
to things on the FPU stack.
Doug McDonald
More information about the Comp.lang.c
mailing list