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-29 01:52:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Size and pack Date: Mon, 29 Oct 2001 09:52:20 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <_umC7.74983$gT6.38373531@news1.rdc1.sfba.home.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1004349140 16294 217.17.192.37 (29 Oct 2001 09:52:20 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 29 Oct 2001 09:52:20 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:15331 Date: 2001-10-29T09:52:20+00:00 List-Id: * tmoran@acm.org wrote: >> > Log_Num at 5 range 0 .. 31; >> > End_Byte at 9 range 0 .. 7; >> > LRC at 10 range 0 .. 7; >> > end record; >> > for Rx_Header_Data'size use 8*11; >> >> The problem was that this rep clause will not work, because Log_Num must >> be aligned to a 4-byte boundary. Some compilers will silently ignore your >> rep clause, I believe GNAT will tell you it can't do it. > > I tested it on Gnat 3.13p on Windows before posting, and Gnat was >perfectly happy with it. And ARM 13.5.1(23) says that "If component >clauses are given for all components, the record representation clause >completely specifies the representation of the type and will be obeyed >exactly by the implementation." That seems pretty unambiguous to me. Compile on Alpha and get BUS ERROR.