1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
@echo off if .%1==. goto help if exist %1 goto getSizeInfo goto help :getSizeInfo %1\ARM\ARMCC\bin\armar --sizes %2 > %3 goto end :help echo Syntax: getSizeInfo inFile outFile echo. echo e.g.: getSizeInfo ..\..\..\Lib\ARM\arm_cortexM0l_math.lib arm_cortexM0l_math.txt :end