comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: Non byte-aligned components in GNAT rejected
Date: 11 Dec 2002 14:28:44 -0500
Date: 2002-12-11T19:40:59+00:00	[thread overview]
Message-ID: <uisy0mk2b.fsf@nasa.gov> (raw)
In-Reply-To: 254c16a.0212111032.451cab61@posting.google.com

mcq95@earthlink.net (Marc A. Criley) writes:

> GNAT 3.14p on W2K is rejecting one of my rep specs, stating that "large
> component must be on byte boundary".

Same message from GNAT 3.15a1 on WinNT 4.0.

I suspect putting characters on non-byte boundary is just not going to
happen. I tried adding 'pragma Pack' to the array, and using a
non-character element type for the array; no luck.

> If I can't find a way to put these definition together, I'll have to shift
> to an "accessor" approach where I just stuff and retrieve bits from an
> undifferentiated bit buffer.

I think that's what you'll have to do. Sorry :).

-- 
-- Stephe



  reply	other threads:[~2002-12-11 19:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 18:32 Non byte-aligned components in GNAT rejected Marc A. Criley
2002-12-11 19:28 ` Stephen Leake [this message]
2002-12-12 13:41 ` Marin David Condic
2002-12-12 18:25 ` Peter Richtmyer
2002-12-13 12:39   ` Marc A. Criley
2002-12-13 19:13     ` Peter Richtmyer
2002-12-16 15:51 ` Mark Johnson
  -- strict thread matches above, loose matches on Subject: below --
2002-12-12  7:05 Grein, Christoph
replies disabled

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