From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7345e706c651a1a3 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q19g2000prn.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: pragma Pack does not work on GNAT 5.01a for Redhat Linux. Date: Wed, 20 Jun 2007 09:35:58 -0700 Organization: http://groups.google.com Message-ID: <1182357358.516902.186960@q19g2000prn.googlegroups.com> References: <1182259013.590515.118310@g4g2000hsf.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1182357359 24123 127.0.0.1 (20 Jun 2007 16:35:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 Jun 2007 16:35:59 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q19g2000prn.googlegroups.com; posting-host=66.126.103.122; posting-account=cw1zeQwAAABOY2vF_g6V_9cdsyY_wV9w Xref: g2news1.google.com comp.lang.ada:16278 Date: 2007-06-20T09:35:58-07:00 List-Id: On Jun 20, 8:51 am, "Bob Spooner" 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