comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: pragma Pack does not work on GNAT 5.01a for Redhat Linux.
Date: Wed, 20 Jun 2007 09:35:58 -0700
Date: 2007-06-20T09:35:58-07:00	[thread overview]
Message-ID: <1182357358.516902.186960@q19g2000prn.googlegroups.com> (raw)
In-Reply-To: <f5bie0$1fjs$1@f04n12.cac.psu.edu>

On Jun 20, 8:51 am, "Bob Spooner" <r...@psu.edu> wrote:

> For exchanging
> binary data between heterogeneous systems, my experience has been that
> record representation clauses are necessary to insure that the data
> representations are identical.

Absolutely.  You can't count on Pack to do things a certain way; the
RM says that the compiler is free to rearrange the components as it
sees fit to make things smaller.  Pack is appropriate when you want
the type to be as small as possible but don't really care how it's
laid out.  It's not appropriate if you care how your record is laid
out; you'll need a record rep clause for that.

                  -- Adam







  reply	other threads:[~2007-06-20 16:35 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
2007-06-19 16:23 ` Adam Beneschan
2007-06-20 15:51 ` Bob Spooner
2007-06-20 16:35   ` Adam Beneschan [this message]
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