4.20 object_attribute Pragma

The IAR object_attribute pragma sets object attributes to the following function or object.

Suggested Replacement

Remove the pragma and ensure that any IAR object attributes specified with this pragma have been migrated to the MPLAB XC8 equivalent and attached to the definition of the object or function, where possible.

Caveats

None

Examples

Consider migrating IAR code such as:
#pragma object_attribute=__no_init
char maker = 3;
to MPLAB XC8 code similar to:
__persistent char maker = 3;