The DATA_ALIGN pragma aligns the symbol in C, or the next symbol declared in C++, to an alignment boundary. The alignment boundary is the maximum of the symbol's default alignment value or the value of the constant in bytes. The constant must be a power of 2. The maximum alignment is 32768.
The DATA_ALIGN pragma cannot be used to reduce an object's natural alignment.
The syntax of the pragma in C is:
#pragma DATA_ALIGN (symbol, constant) |
The syntax of the pragma in C++ is:
#pragma DATA_ALIGN (constant) |