From: "James E. Hopper" <hopperj@macconnect.com>
Subject: Re: array size
Date: 1999/12/11
Date: 1999-12-11T00:00:00+00:00 [thread overview]
Message-ID: <111219991626405236%hopperj@macconnect.com> (raw)
In-Reply-To: 3852831a.0@news.pacifier.com
Steve,
that pretty much answers my question about it being a bug in machten.
the problem arose initially on solaris (it was sent to me as a
question) and the machten port gives the same answer as the solaris
port. but if NT gives the expected answer then there is possibly
something wrong with gnat??? I will send it on to ACT
THANKS! jim
In article <3852831a.0@news.pacifier.com>, DuckE
<nospam_steved@pacifier.com> wrote:
> Here's my results with GNAT 3.12p on Windows NT:
>
> -----------------
> Size of Frequency Type = 24
>
> Length of Preset_Array_Type = 6
> Size of Preset array elems (Frequency_Type) * length of array = 144
> Size of Preset_Array_Type (per compiler- should match above calculation =
> 144
>
> Length of Day_Array_Type = 7
> Size of day array elems (Preset_Array _Type) * length of array = 1008
> Size of Day_Array_Type (per compiler- should match above calculation = 1008
> ------------------
>
> It looks like this is what you were expecting. What's your host/target?
>
> SteveD
>
> James E. Hopper <hopperj@macconnect.com> wrote in message
> news:101219991605504828%hopperj@macconnect.com...
> > the following program is a cut and paste from some code we are porting
> > to gnat from vads. if some reason the type
> >
> > type Day_Array_Type is array ( Day_Type ) of Preset_Array_Type;
> > pragma pack (Day_Array_Type); -- RAD SOLARIS PORT
> >
> > is not packing the array how i would expect. it appears to be padding
> > each element with 2 bytes to align array elements on word boundries
> > despite the pragma pack. using rep spec doesnt help because compiler
> > spits it out as wrong size.
> >
> > any ideas???
> >
> > thansk jim
> [snip]
next prev parent reply other threads:[~1999-12-11 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-10 0:00 array size James E. Hopper
1999-12-10 0:00 ` Matthew Heaney
1999-12-11 0:00 ` James E. Hopper
1999-12-11 0:00 ` Robert Dewar
1999-12-11 0:00 ` Robert A Duff
1999-12-11 0:00 ` Matthew Heaney
1999-12-11 0:00 ` Matthew Heaney
1999-12-13 0:00 ` Robert A Duff
1999-12-11 0:00 ` James E. Hopper
1999-12-12 0:00 ` Matthew Heaney
1999-12-11 0:00 ` DuckE
1999-12-11 0:00 ` James E. Hopper [this message]
1999-12-11 0:00 ` DuckE
1999-12-12 0:00 ` James E. Hopper
1999-12-12 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox