Attribute: symbol_config_no_check_alignment
Unaligned data only with unaligned memory access
If the symbol configuration contains unaligned values or symbols for a device which does not support the required (unaligned) memory access, an error is set.
The following message is displayed:
The component <name> of the SymbolType <symbol type name> without memory alignment cannot be published.
This prevents potentially faulty code from being downloaded to the controller, which could lead to an unpredictable crash of the controller.
The {attribute 'symbol_config_no_check_alignment'}
pragma prevents checking whether or not the alignment of a symbol matches the memory alignment of the controller. Variables marked in this way are always exported as symbols, even if the memory alignment does not match.
Syntax:
{attribute 'symbol_config_no_check_alignment'}
In order to affect only an individual variable, you need to place the pragma in the line before the variable declaration.
In order to be effective for all variables in the declaration part of a program, you must place the pragma in the first line of the declaration editor. In this case, too, you can still set instructions for individual variables explicitly in the respective line.
For more information, see: