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-26 16:39:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!feeder.via.net!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Size and pack References: X-Newsreader: Tom's custom newsreader Message-ID: <_umC7.74983$gT6.38373531@news1.rdc1.sfba.home.com> Date: Fri, 26 Oct 2001 23:39:38 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1004139578 24.7.82.199 (Fri, 26 Oct 2001 16:39:38 PDT) NNTP-Posting-Date: Fri, 26 Oct 2001 16:39:38 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:15286 Date: 2001-10-26T23:39:38+00:00 List-Id: > > 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.