14.3.3 Enabling the Stack Usage Report
The stack-usage report is enabled through the -mchp-stack-usage
command-line option, which is passed to XC32 when the Stack
Guidance checkbox is enabled in the MPLAB X Project Properties.
To enable Stack Usage Analysis from MPLAB X, set Stack Guidance in .
or pass -mchp-stack-usage in command line.
xc32-gcc -mprocessor=32MZ2048ECH100
-mdfp="Microchip/Microchip.PIC32MZ-EC_DFP.1.4.150" -mchp-stack-usage -O0 test.c
