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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38ceb882eed41e1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-10 02:51:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.com.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: Size and pack Date: Wed, 10 Oct 2001 09:50:42 GMT Organization: Emrad Ltd Message-ID: <3bc41989.4285341@news.demon.co.uk> References: <9ff447f2.0110100005.2503bb00@posting.google.com> <3BC40DF2.9447F025@icn.siemens.de> NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1002707454 nnrp-08:25642 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:14131 Date: 2001-10-10T09:50:42+00:00 List-Id: On Wed, 10 Oct 2001 10:59:30 +0200, Alfred Hilscher wrote: Sorry I missed the original post but... >> Why this happens? Can I use representation clause instead of pragma >> pack? If both methods work, which is the best approach and why? Your best bet would be to use as many representation attributes as are necessary. In general I would use both a representation clause and pragma pack on an item such as this, and possibly an alignment clause, to guarantee as much as possible that the record layout in memory is the way that you want it.