Ada Programming/Attributes/'Alignment
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Description
X'Alignment is an Ada attribute where X is any memory-allocated object or type. This attribute controls the address values used for objects. All addresses of X are multiples of X's alignment.
The alignment of an object may be set. The alignment must be a natural number. This number represents storage units. A value of zero represents that the object may not be allocated along the lines of storage units.