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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,78b2880bc7e78e39 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-17 01:38:53 PST Path: nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!194.213.69.151!news.algonet.se!newsfeed1.telenordia.se!algonet!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: RISC Date: Thu, 15 Mar 2001 12:37:58 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <98qumf$5sf$1@nh.pace.co.uk> References: NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 984677903 6031 136.170.200.133 (15 Mar 2001 17:38:23 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 15 Mar 2001 17:38:23 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: nntp.stanford.edu comp.lang.ada:91486 Date: 2001-03-15T17:38:23+00:00 List-Id: To make matters worse, a compiler is free in general to refuse to accept *any* representation clause - You Can't Always Get What You Want.... MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Robert A Duff" wrote in message news:wccpufjaxz5.fsf@world.std.com... > That's not quite right. 'Size clauses on *subtypes* don't necessarily > do what you most people think (unfortunately). > > Byte'Size = 8 by default, and whether you say the above or not, it's a > *minimum* size -- the compiler is free to allocate 32 bits for an object > of type Byte. In fact, for a parameter, the object will most likely end > up in a register. > > If you want to control the size of an object, put a 'Size clause on the > object. Or if it's a record or array component, use a record_rep_clause > or a Component_Size clause (resp).