__no_alloc, __no_alloc16
In this section:
Syntax
See Syntax for object attributes.
Description
Use the __no_alloc or __no_alloc16 object attribute on a constant to make the constant available in the executable file without occupying any space in the linked application.
You cannot access the contents of such a constant from your application. You can take its address, which is an integer offset to the section of the constant. The type of the offset is unsigned long when __no_alloc is used, and unsigned short when __no_alloc16 is used.
Example
__no_alloc const struct MyData my_data @ "XXX" = {...};