comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Confused about Attribute Size?
Date: Wed, 23 Jan 2002 02:20:13 GMT
Date: 2002-01-23T02:20:13+00:00	[thread overview]
Message-ID: <3C4E1DD9.D0B62FDE@acm.org> (raw)
In-Reply-To: 3C4DEE09.B34A579@Raytheon.com

Mark Johnson wrote:
> 
> > for My_Type'Size use 8;
> >
> Another representation specification. In this case, you are asking that
> the 16 possible values to be stored in an eight bit byte (or larger).
> There are several cases where the compiler can use more than 8 bits to
> store My_Type...
>  - a record component if the record is NOT packed
>  - array components
>  - a formal parameter passed to a function or procedure
> There are several pages of dense text in the Annotated Ada Reference
> Manual in section 13.3 that describes this in far more detail that I
> will attempt to describe - especially to a newbie.

A 'Size specification on a type instructs the compiler to use that size
for components of packed records and arrays. In most other cases
(records with the layout specified is an exception), the compiler may
use any size it chooses.

-- 
Jeff Carter
"Go and boil your bottoms."
Monty Python & the Holy Grail



  reply	other threads:[~2002-01-23  2:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-22  7:39 Confused about Attribute Size? Zebylon
2002-01-22 19:08 ` Patrick Hohmeyer
2002-01-22 22:56 ` Mark Johnson
2002-01-23  2:20   ` Jeffrey Carter [this message]
2002-01-23 14:56     ` Mark Johnson
2002-01-23 17:06       ` Jeffrey Carter
2002-01-24  4:11         ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2002-01-22  8:00 Christoph Grein
replies disabled

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