fortran to C converter

Karl Heuer karl at haddock.ima.isc.com
Wed Apr 26 04:55:47 AEST 1989


In article <8050 at boring.cwi.nl> dik at cwi.nl (Dik T. Winter) writes:
>In article <1989Apr24.172747.993 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
>>In article <12247 at lanl.gov> jlg at lanl.gov (Jim Giles) writes:
>>>[Cray's double is inefficient]
>>Given the pervasive nature of double in C code, sounds like Cray made a bad
>>decision (or an interim one).
>
>Given that Cray's choice predates C, this sounds a bit strange.

No, Henry's right.  Given the above information, it does appear that Cray
(here taken to mean the persons who designed the C compiler for that machine)
made a bad decision.  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.

I also hold the opinion that K and R made some bad decisions with float and
double, some of which are fixed by ANSI C, but this doesn't contradict the
above paragraph.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list