15.2.4 Sample Test Script

This script shows how to compile and evaluate sample code from a command line.

MDFP_OPT=-mdfp=/home/myhome/.mchp_packs/Microchip/PIC32AK-GC_DFP/<latest version>/xc32

rm -f t1.exe t1.map debug.out
xc32-gcc t1.c -o t1.exe -save-temps -mcpu=32AK1216GC41064 -Tp32AK1216GC41064.gld $MDFP_OPT -Wl,--report-mem,-Map=t1.map,--debug > debug.out

rm -f t1.o t1.i t1.s 
xc32-objdump -h t1.exe
xc32-nm t1.exe | grep IVT