24.6 Intrinsic Functions

Intrinsic functions can be used to perform common tasks in the source code. The MPLAB XC compilers’ support for the intrinsic functions offered by other compilers is shown in the following table.

Table 24-6. Support for Non-Standard Intrinsic Functions
IAR Compatibility Mode
FunctionXC8XC16XC32
__disable_fiq1supportignoreignore
__disable_interruptsupportsupportsupport
__disable_irq1.supportignoreignore
__enable_fiq1.supportignoreignore
__enable_interruptsupportsupportsupport
__enable_irq1.supportignoreignore
__get_interrupt_stateignoresupportsupport
__set_interrupt_stateignoresupportsupport

The header file <xc.h> must be included for supported functions to operate correctly.

1 These intrinsic functions map to macros which disable or enable the global interrupt enable bit on 8-bit PIC® devices.