Ada Programming/Attributes/'Alignment

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Ada. Time-tested, safe and secure.

Description[edit | edit source]

X'Alignment is an Ada attribute where X is any memory-allocated object or type. This attribute controls the address values used for objects. The alignment must be non-negative. A value of zero means that the object need not be allocated at the boundary of a storage units. Otherwise the address is a multiple of X's alignment.

The alignment of an object may be set.

See also[edit | edit source]

Wikibook[edit | edit source]

Ada Reference Manual[edit | edit source]