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,379f9c2a66a5ddc8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Question about package Interfaces. Date: Tue, 14 Sep 2010 09:36:43 -0700 Organization: Netfront http://www.netfront.net/ Message-ID: References: <4c8d7a8e$0$2408$4d3efbfe@news.sover.net> <4c8e2be0$0$2414$4d3efbfe@news.sover.net> NNTP-Posting-Host: 75.211.122.90 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1284482205 47148 75.211.122.90 (14 Sep 2010 16:36:45 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Tue, 14 Sep 2010 16:36:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7 In-Reply-To: Xref: g2news1.google.com comp.lang.ada:14074 Date: 2010-09-14T09:36:43-07:00 List-Id: On 09/13/2010 11:33 PM, J-P. Rosen wrote: > > Imagine that you declared: > X : Unsigned_8; > and you discover that the declaration advances the data counter by 4 > bytes. You can interpret that as X occupying 32 bits, or as X occupying > only 8 bits with 3 unused padding bytes ahead of it. > > There is positively no way to tell the difference. You could examine the machine code to see if it does 4-byte or 1-byte load and stores. This might be important if X were, say, a memory-mapped control register for a H/W device. But then, I'd expect to see for X'Size use 8; for X'Address use ...; -- Jeff Carter "To Err is human, to really screw up, you need C++!" St�phane Richard 63 --- news://freenews.netfront.net/ - complaints: news@netfront.net ---