Jump to content

Ada Programming/Attributes/'System Allocator Alignment

From Wikibooks, open books for an open world

Description

[edit | edit source]

Standard'System_Allocator_Alignment (Standard is the only allowed prefix) provides the observable guaranteed to be honored by the system allocator (malloc). This is a static value that can be used in user storage pools based on malloc either to reject allocation with alignment too large or to enable a realignment circuitry if the alignment request is larger than this value.