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.
IAR Keyword (links to explanatory section) | Suggested MPLAB XC32 Migration |
---|---|
Function Type Attributes | |
__arm | Ignored by XC32 |
__cmse_nonsecure_call | cmse_nonsecure_call |
__interwork | Ignored by XC32 |
__irq | Error by XC32 |
__svc | Ignored by XC32 |
__swi | Ignored by XC32 |
__task | _attribute__((target('naked'))) |
__thumb | Ignored by XC32 |
Data Type Attributes | |
__big endian | Ignored by XC32 |
__little endian | Ignored by XC32 |
__packed | __attribute__((packed)) |
Object Type Attributes | |
__absolute | Error by XC32 |
_cmse_nonsecure_entry | __attribute__((cmse_nonsecure_entry)) |
__intrinsic | Error by XC32 |
__location |
|
_naked | __attribute__((naked)) |
__nested | Ignored by XC32 |
__no_alloc, __no_alloc16 | Error by XC32 |
__no_alloc_str, __no_alloc_str16 | Error by XC32 |
__no_init | __attribute__((persistent)) |
__noreturn | __attribute__((noreturn)) |
__ramfunc | __attribute__((ramfunc)) |
__root | __attribute__((used)) |
__ro_placement | const |
__stackless | Error by XC32 |
__weak | __attribute__((weak)) |