24.4 Operator
The @
operator may be used with other compilers to
indicate the desired memory location of an object. As the following table indicates,
support for this syntax in MPLAB C is limited to MPLAB XC8 only.
Any address specified with another device is unlikely to be correct on a new architecture. Review the address in conjunction with the data sheet for your target Microchip device.
Using @
in a compatibility mode with MPLAB XC8 will work
correctly, but will generate a warning. To prevent this warning from appearing again, use
the reviewed address with the MPLAB C __at()
specifier instead.
For MPLAB XC16/32, consider using the address
attribute.
IAR Compatibility Mode | |||
---|---|---|---|
Operator | XC8 | XC16 | XC32 |
@ | native support | error | error |