Technical Support
On-Line Manuals
Compiler Reference Guide
__alignof__
The __alignof__ keyword enables you to enquire about the alignment of a type or variable.
This keyword is a GNU compiler extension that is supported by the ARM compiler.
__alignof__(type)
type
__alignof__(expr)
expr
Where:
is a type
is an lvalue.
__alignof__(type) returns the alignment requirement for the type type, or 1 if there is no alignment requirement.
__alignof__(expr) returns the alignment requirement for the type of the lvalue expr, or 1 if there is no alignment requirement.
int Alignment_0(void) { return __alignof__(int); }
__ALIGNOF__.