comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Enhancement needed
Date: 2000/09/17
Date: 2000-09-17T00:00:00+00:00	[thread overview]
Message-ID: <39C564E4.C976F096@telepath.com> (raw)
In-Reply-To: 39C5530F.B7849F7A@Raytheon.com


"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






  reply	other threads:[~2000-09-17  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-12 12:51 Enhancement needed (was strange record size ?) Michael Pickett
2000-09-12 23:03 ` John McCabe
2000-09-13  0:00   ` Michael Pickett
2000-09-13  0:00 ` Enhancement needed Nick Roberts
2000-09-13  0:00   ` Robert A Duff
     [not found]   ` <feMY0DAzxTw5EwOG@ntlworld.com>
2000-09-17  0:00     ` Samuel T. Harris
2000-09-17  0:00       ` Ted Dennison [this message]
2000-09-18  0:00         ` Samuel T. Harris
2000-09-25  4:26         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox