comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Does Ada 95 conform to the IEEE 754 floating point standard?
Date: 1997/12/03
Date: 1997-12-03T00:00:00+00:00	[thread overview]
Message-ID: <dewar.881166633@merv> (raw)
In-Reply-To: 663s9i$8te27@beaker.nit.gwu.edu


Samir asks

<<        I was wondering whether Ada 95 conform to the IEEE 754 floating point
standard. Pointers to URLs, papers, etc. are highly appreciated.
>>

Unlike the Language Independent Arithmetic standard, IEEE is NOT a standard
about what programming languages should do. Rather it is a standard that
specifies a set of functions that must be available.

Obviously Ada itself does not mandate IEEE, because then it could not be
implemented with reasonable efficiency on non-IEEE machines, or more
accurately on machines not providing full IEEE facilities in hardware.

Java *does* mandate such support, and a consequence is that it is impossible
to implement Java with reasonable efficiency on machines (like the SGI
MIPS R10000, or the Alpha) which do not provide full IEEE support in
hardware. In practice everyone just ignores this requirement in java and
uses native arithmetic, assuming it is near enough.

Ada 95 is carefully designed to be compatible with the IEEE 754 and 854
standards, but to actually provide a full IEEE environment requires, in
addition to operation on a machine fully supporting IEEE semantics, a
package of appropriate interface definitions.

A student of mine, Sam Figueroa, is working on a thesis that among other
aspects, will provide a full implementation of these interfaces, and we
expect to be providing this with GNAT sometime in the future.





  reply	other threads:[~1997-12-03  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-03  0:00 Does Ada 95 conform to the IEEE 754 floating point standard? Samir N. Muhammad
1997-12-03  0:00 ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-02-04  0:00 Samir N. Muhammad
1998-02-04  0:00 ` Joe Gwinn
1998-02-04  0:00   ` Matthew Heaney
1998-02-05  0:00     ` Robert Dewar
1998-02-04  0:00 ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox