comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: pragma Pack does not work on GNAT 5.01a for Redhat Linux.
Date: Tue, 19 Jun 2007 16:16:48 GMT
Date: 2007-06-19T16:16:48+00:00	[thread overview]
Message-ID: <QjTdi.172078$_c5.22618@attbi_s22> (raw)
In-Reply-To: <1182259013.590515.118310@g4g2000hsf.googlegroups.com>

petter_fryklund@hotmail.com wrote:
> The Size of the following record is 112 on Linux, but 104 on Solaris.
> 
> type Something is record
>    A : Packed_16;
>    B : Packed_8;
>    C : Packed_8;
>    D : Packed_8;
>    E : Packed_32;
>    F : Packed_32;
> end record;
> pragma Pack (Something);

What happens if you add

for Something'Size use 104;

?

-- 
Jeff Carter
"Alms for an ex-leper!"
Monty Python's Life of Brian
75



  parent reply	other threads:[~2007-06-19 16:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 13:16 pragma Pack does not work on GNAT 5.01a for Redhat Linux petter_fryklund
2007-06-19 14:02 ` Georg Bauhaus
2007-06-19 14:15   ` petter_fryklund
2007-06-19 16:16 ` Jeffrey R. Carter [this message]
2007-06-19 16:23 ` Adam Beneschan
2007-06-20 15:51 ` Bob Spooner
2007-06-20 16:35   ` Adam Beneschan
2007-06-20 20:50   ` Simon Wright
2007-06-21 14:50     ` Bob Spooner
2007-06-22  5:20       ` Simon Wright
2007-06-29 10:21         ` Ole-Hjalmar Kristensen
2007-07-01 10:57           ` Simon Wright
2007-08-07 10:51             ` Ole-Hjalmar Kristensen
2007-08-10 20:36               ` Simon Wright
replies disabled

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