My CompileMain.bat
public text v1 · immutableecho Compiling %1.dpr
ppcrossarm -CX -s -XXs -dgp2x %1.dpr
echo Assembling %1
arm-linux-as.exe -mcpu=arm920 -o %1.o %1.s
if errorlevel 1 goto asmend
echo Linking %1
arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res
if errorlevel 1 goto linkend
goto end
:asmend
echo An error occured while assembling %1
goto end
:linkend
echo An error occured while linking %1
:end