Next: RM 13 3 71-73 Component Size Clauses, Previous: RM 13 3 42-43 Size Clauses, Up: Implementation Advice [Contents][Index]
"If the
Sizeof a subtype is specified, and allows for efficient independent addressability (see 9.10) on the target architecture, then theSizeof the following objects of the subtype should equal theSizeof the subtype:Aliased objects (including components)."
Followed.
"Size clause on a composite subtype should not affect the internal layout of components."
Followed. But note that this can be overridden by use of the implementation pragma Implicit_Packing in the case of packed arrays.
"The recommended level of support for the
Sizeattribute of subtypes is:The
Size(if not specified) of a static discrete or fixed point subtype should be the number of bits needed to represent each value belonging to the subtype using an unbiased representation, leaving space for a sign bit only if the subtype contains negative values. If such a subtype is a first subtype, then an implementation should support a specifiedSizefor it that reflects this representation."
Followed.
"For a subtype implemented with levels of indirection, the
Sizeshould include the size of the pointers, but not the size of what they point at."
Followed.