Ada Programming/Attributes/'Alignment

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Ada Lovelace 1838.jpg

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.

[edit] See also

[edit] Wikibook

[edit] Ada Reference Manual