From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Ada 95 Numerics questions for the experts
Date: 1997/08/28
Date: 1997-08-28T00:00:00+00:00 [thread overview]
Message-ID: <dewar.872745692@merv> (raw)
In-Reply-To: jeffrey.m.creem-2708971721530001@ljd155.sanders.lockheed.com
<<Nope. The AdaMajic front end (Green hills in this case) rounds the
components to 8 bits even in the precense of a pragma pack
you get a 64 Byte array.>>
SOunds like a bug to me, since these compilers say they support
annex C, this means that the implementation advice in chapter 13 (13.2(9))
9 For a packed array type, if the component subtype's Size is less
than or equal to the word size, and Component_Size is not
specified for the type, Component_Size should be less than or
equal to the Size of the component subtype, rounded up to the
nearest factor of the word size.
which of course becomes a requirement if you claim annex C support.
Reading this paragraph, we see that it is OK to round up to 4-bits,
but certainly not 8-bits.
As I noted before, GNAT does not round up at all, and packs tightly at
3 bits, letting components spill over byte and word boundaries. This
is not required by para 9, but is of course consistent with it ("less
than or equal").
next prev parent reply other threads:[~1997-08-28 0:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3401C14B.480@gsfc.nasa.gov>
1997-08-25 0:00 ` Ada 95 Numerics questions for the experts Robert Dewar
[not found] ` <dewar.872560585@merv>
[not found] ` <jcreem-2608970711210001@ljd155.sanders.lockheed.com>
[not found] ` <dewar.872630607@merv>
[not found] ` <jeffrey.m.creem-2708970802350001@ljd155.sanders.lockheed.com>
1997-08-27 0:00 ` Robert Dewar
[not found] ` <jeffrey.m.creem-2808970708260001@ljd155.sanders.lockheed.com>
1997-08-28 0:00 ` Robert Dewar
1997-08-27 0:00 ` David C. Hoos, Sr.
1997-08-27 0:00 ` Jeff Creem
1997-08-28 0:00 ` Robert Dewar [this message]
1997-08-28 0:00 ` Jeff Creem
1997-08-29 0:00 ` Tucker Taft
1997-08-30 0:00 ` Robert A Duff
1997-08-31 0:00 ` Tom Moran
1997-09-01 0:00 ` Robert Dewar
1997-09-02 0:00 ` Fergus Henderson
1997-09-02 0:00 ` Robert A Duff
[not found] ` <mheaney-ya023680000209972104030001@news.ni.net>
1997-09-05 0:00 ` Robert Dewar
1997-09-05 0:00 ` Matthew Heaney
1997-09-08 0:00 ` Robert A Duff
1997-09-08 0:00 ` Matthew Heaney
1997-09-09 0:00 ` Robert A Duff
[not found] ` <EFxt94.F5F@world.std.com>
1997-09-06 0:00 ` Robert Dewar
1997-09-08 0:00 ` Robert A Duff
1997-09-08 0:00 ` Matthew Heaney
1997-09-09 0:00 ` Robert A Duff
1997-09-01 0:00 ` Robert Dewar
1997-08-27 0:00 ` Robert Dewar
1997-08-30 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox