15.3.4.1 MIPs Interrupts

The use of interrupts increases a program's stack usage, but an estimate of the additional memory used is properly reported through the stack guidance feature.

The PIC32M devices allow nesting of interrupts based on a priority level; however, nesting can be disabled as required by specifying the keep_interrupts_masked attribute with those interrupt functions that should not be interruptable. The stack guidance feature is aware of the use of this attribute and the function's interrupt priority level, and will report the maximum possible stack usage of the configuration of interrupt functions. A worst case scenario is computed if required and will be the stack usage of the interrupt functions that have the highest stack usage per priority level, summed over each level.