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,2a0aa2b1c348fd6a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-ham1.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: shifting bits Date: Mon, 30 Aug 2004 17:17:46 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <4353664.evzZIOeHXC@linux1.krischik.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1093886266 10104 134.91.1.34 (30 Aug 2004 17:17:46 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 30 Aug 2004 17:17:46 +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:3171 Date: 2004-08-30T17:17:46+00:00 List-Id: Martin Krischik wrote: :> month : integer range 1 .. 12 := 1; : : type month_type range 1 .. 12 := 1; : for month_type'Size use 4; when I declare type month_type is range 1 .. 12; for month_type'Size use 4; m: month_type := 1; the compiler chooses 8 (following the rule "Object_Size must be 8, 16, 32, or multiple of 64" I guess.) TIO.put_line("m's size: " & Natural'image(m'size)); prints m's size: 8 Tried with GNATs. Do other compilers choose smaller representations? -- Georg