Ada Programming/Attributes/'Alignment

From Wikibooks, open books for an open world
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

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export