4 IAR Extended Keywords

This section shows a summary of IAR extended keywords and the best MPLAB XC32 replacement where that is available. These keywords and their MPLAB XC32 equivalents are discussed in more detail in the sections that follow. It is recommended that you compare the relevant sections in the MPLAB® XC32 C/C++ Compiler User's Guide with those in your IAR C/C++ Compiler User Guide to ensure that migrated code will work as expected in all situations.

Table 4-1. IAR Extended Keywords to MPLAB XC32 Equivalents
IAR Keyword (links to explanatory section)Suggested MPLAB XC32 Migration
Function Type Attributes
__armIgnored by XC32
__cmse_nonsecure_callcmse_nonsecure_call
__interworkIgnored by XC32
__irqError by XC32
__svcIgnored by XC32
__swiIgnored by XC32
__task_attribute__((target('naked')))
__thumbIgnored by XC32
Data Type Attributes
__big endianIgnored by XC32
__little endianIgnored by XC32
__packed__attribute__((packed))
Object Type Attributes
__absoluteError by XC32
_cmse_nonsecure_entry__attribute__((cmse_nonsecure_entry))
__intrinsicError by XC32
__location
__attribute__((address(n)))
__attribute__((section("n")))
_naked__attribute__((naked))
__nestedIgnored by XC32
__no_alloc, __no_alloc16Error by XC32
__no_alloc_str, __no_alloc_str16Error by XC32
__no_init__attribute__((persistent))
__noreturn__attribute__((noreturn))
__ramfunc__attribute__((ramfunc))
__root__attribute__((used))
__ro_placementconst
__stacklessError by XC32
__weak__attribute__((weak))