fortran to C converter

Jim Giles jlg at lanl.gov
Wed Apr 26 09:29:07 AEST 1989


>From article <12787 at haddock.ima.isc.com>, by karl at haddock.ima.isc.com (Karl Heuer):
> [...]               Assuming they have only two floating-point sizes, they
> should have mapped the C type `double' to the smaller one, and used `long
> double' for the less efficient type.

Actually, I think that this is what Cray's C compiler actually does:
it implements both "float" and "double" as the default 64-bit hardware
floats - and there _is_no_other_precision_.  This, of course is almost
as bad as the description I gave in my original posting.  In any case,
with respect to the original subject, whichever way Cray did it: C is
not yet capable of adequately replacing Fortran (I doubt that it ever
will be).

By the way, what _is_ "long double"?  I've never seen a C compiler which
has such a thing.  The proposed ANSI standard mentions "long double",
but doesn't require it to be more precise than double!  In fact, the
only surprising thing about floating point in the standard is that
it requires the FLT_RADIX to be 2 - that is, it requires "float" to
be binary!  No radix is defined for "double" or "long double".



More information about the Comp.lang.c mailing list