15.2.4 Sample Test Script
This script shows how to compile and evaluate sample code from a command line.
@echo off
setlocal
set MDFP_OPT="-mdfp=C:\Users\%USERNAME%\.mchp_packs\Microchip\dsPIC33AK-MC_DFP\<latest version>\xc16"
rem Clean outputs
del /q t1.exe t1.map debug.out 2>nul
rem Build
xc-dsc-gcc t1.c -o t1.exe -save-temps -mcpu=33AK128MC106 -Tp33AK128MC106.gld %MDFP_OPT% -Wl,--report-mem,-Map=t1.map,--debug > debug.out
rem Clean intermediates
del /q t1.o t1.i t1.s 2>nul
rem Inspect outputs
xc-dsc-objdump -h t1.exe
rem Symbol list
xc-dsc-nm t1.exe | findstr /I "IVT"
endlocal
