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,9dec3ff1604723d9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Bitordering? was Re: Bitmanipulation in Ada Date: Sat, 21 Aug 2004 16:55:20 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <412665C4.E52A7590@alfred-hilscher.de> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1093107320 10507 134.91.1.34 (21 Aug 2004 16:55:20 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Sat, 21 Aug 2004 16:55:20 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:2912 Date: 2004-08-21T16:55:20+00:00 List-Id: Nick Roberts wrote: : On Fri, 20 Aug 2004 22:57:40 +0200, Alfred Hilscher : wrote: : :> When I declare an boolean array with eight elements 1..8 (e.g. to :> address a hardware port with eight status bits), how are they :> ordered is X(1) the msb or the lsb of the byte? : : It is undefined. : : The typical way to deal with this kind of situation is to use a : record type with a record representation clause. For example: [...] You might also be interested in the Bit Order paper by Norman Cohen available in the grab bag at http://www.ada-auth.org -- Georg