[m-dev.] Re: for review: accumulator introduction

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Jun 7 13:02:13 AEST 1999


On 07-Jun-1999, Lee Naish <lee at cs.mu.OZ.AU> wrote:
> Peter Ross <petdr at cs.mu.OZ.AU> writes:
> >+/* XXX introducing accumulators for floating point numbers can be bad.
> 
> Best mention the reason: the operations are typically *not* associative.
> There should be some way to locally prevent the order of floating point
> operations being changed by the compiler.
> 
> For that matter, the same applies to ints (because of overflow).  This
> should at least be XXX documented.

Yes.  I think it would make sense to add a compiler option,
in the "language semantics options" section, to control this.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list