"Numerical Recipes in C" is nonportable code

Henry Spencer henry at utzoo.uucp
Sun Sep 18 07:20:12 AEST 1988


In article <16041 at ism780c.isc.com> marv at ism780.UUCP (Marvin Rubenstein) writes:
>But consider what might have happened had dpANS mandated that the compution
>of a pointer to x[-1] be a valid operation.  Then machines for wich the
>mandated behavior is slow would be not used by people interested in high
>performance.  The net effect could be salubrious for the computer industry in
>the long run.

No.  A much more probable result would be widespread rejection of the C
standard, making things worse than before.  ANSI does not have the power
to legislate conformance to standards -- that has to be voluntary.  If
too many manufacturers, especially big ones, decline to conform to a
standard, it falls into disuse and is forgotten.  Let us not forget that
the machine whose segmented architecture causes the biggest headaches for
pointer trickery is also the biggest-selling computer of all time.  To get
a standard accepted (by the world, not just by ANSI), it is necessary --
distasteful, but necessary -- to restrain desires for social engineering,
and produce something that will work even on systems one does not like.
-- 
NASA is into artificial        |     Henry Spencer at U of Toronto Zoology
stupidity.  - Jerry Pournelle  | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list