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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9ae4660d46953150 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Enhancement needed Date: 2000/09/17 Message-ID: <39C564E4.C976F096@telepath.com>#1/1 X-Deja-AN: 671015623 Content-Transfer-Encoding: 7bit References: <0$9CsHAKbiv5Ewg1@ntlworld.com> <8pol3q$dnqb3$1@ID-25716.news.cis.dfn.de> <39C5530F.B7849F7A@Raytheon.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 969228280 38.195.186.125 (Sun, 17 Sep 2000 18:04:40 EDT) Organization: Telepath Systems (telepath.com) MIME-Version: 1.0 NNTP-Posting-Date: Sun, 17 Sep 2000 18:04:40 EDT Newsgroups: comp.lang.ada Date: 2000-09-17T00:00:00+00:00 List-Id: "Samuel T. Harris" wrote: > Michael Pickett wrote: > > > > but as far as I recall, the expectation and previous experience was that > > setting the Size attribute for a record type should result in the > > compiler adjusting, if necessary, the internal layout of the record from > > the default layout. > > Consider the following problem. > > A memory mapped device provides a collection of data at a specific > memory address. I use an Ada record to overlay that address. > I need a rather explicit representation clause to exactly I believe the entire issue was what the compiler can do in the *absence* of a rep clause. Its pretty clear that it needs to honor any record rep clause, or die trying. But it was suprising to some that in *absense* of a rep clause, compilers still aren't supposed to rearrange record fields to make a size clause attainable. -- T.E.D. Home - mailto:dennison@telepath.com Work - mailto:dennison@ssd.fsi.com WWW - http://www.telepath.com/dennison/Ted/TED.html ICQ - 10545591