xc32-gcc -G0 -g -mprocessor=32MX270F256B -O0 -falign-functions -mno-mips16 -falign-labels -S -I"./include" test.c
if  %errorlevel% neq 0 goto L_END
xc32-as.exe -achmls="a.lst" -o a.o -I"./include" test.s
if  %errorlevel% neq 0 goto L_END
xc32-ld.exe a.o -V -o a.elf -mprocessor=32MX270F256B -L "C:\Microchip\xc32\v2.10\pic32mx\lib\proc\32MX270F256B" -L "C:\Microchip\xc32\v2.10\lib\gcc\pic32mx\4.8.3" -L "C:\Microchip\xc32\v2.10\pic32mx\lib" -lc -lm -lpic32 -lgcc -Map a.map --script ./mylinkerscript.ld
if  %errorlevel% neq 0 goto L_END
xc32-objdump -D a.elf>a.lst.txt
echo OK
:L_END