Re: inlining + optimization = nuisance bugs

zalman@netcom.com (Zalman Stern)
22 Sep 1998 01:18:30 -0400

          From comp.compilers

Related articles
[11 earlier articles]
Re: inlining + optimization = nuisance bugs roy@prism.gatech.edu (1998-08-20)
Re: inlining + optimization = nuisance bugs awf@robots.ox.ac.uk (Andrew Fitzgibbon) (1998-08-20)
Re: inlining + optimization = nuisance bugs bear@sonic.net (Ray Dillinger) (1998-08-22)
Re: inlining + optimization = nuisance bugs luddy@concmp.com (Luddy Harrison) (1998-09-18)
Re: inlining + optimization = nuisance bugs cfc@world.std.com (Chris F Clark) (1998-09-19)
Re: inlining + optimization = nuisance bugs luddy@concmp.com (Luddy Harrison) (1998-09-22)
Re: inlining + optimization = nuisance bugs zalman@netcom.com (1998-09-22)
Re: inlining + optimization = nuisance bugs chase@world.std.com (David Chase) (1998-09-22)
Re: inlining + optimization = nuisance bugs christian.bau@isltd.insignia.com (1998-09-22)
Re: inlining + optimization = nuisance bugs andrewf@slhosiery.com.au (Andrew Fry) (1998-09-24)
Re: inlining + optimization = nuisance bugs comments@cygnus-software.com (Bruce Dawson) (1998-09-24)
Re: inlining + optimization = nuisance bugs Martin.Ward@SMLtd.Com (1998-09-26)
Re: inlining + optimization = nuisance bugs toon@moene.indiv.nluug.nl (Toon Moene) (1998-09-29)
[10 later articles]
| List of all articles for this month |

From: zalman@netcom.com (Zalman Stern)
Newsgroups: comp.compilers
Date: 22 Sep 1998 01:18:30 -0400
Organization: ICGNetcom
References: 98-09-071
Keywords: arithmetic

Luddy Harrison (luddy@concmp.com) wrote:
: I don't find any language in the document that expresses concern for
: the use of too *much* precision.


I believe it is implicit in the standard that the size and semantics
of single and double precision are fixed except for minor "allowed
deviations" in behavior. (E.g. single-rounding multiply-accumulate has
"special dispensation" from Kahan. Yet still, almost every platform
that has this feature also has a compiler switch to turn it off.)


Compilers which unpredicatably substitute extra precision into
programs are not doing programmers a favor. You can say things like
"Floating-point is imprecise anyway" and "Well if you'd just write
robust code, this wouldn't happen" but its just dancing around the
fact that the tools make it (very) difficult to express a precise
algorithm. (E.g. sometimes folks use IEEE floating-point to simulate
larger integer calculations. Such code may be dependent on IEEE 754,
but it should not be dependent on exactly what happens in the
compiler's optimizer.)


-Z-
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.