1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-03-14 01:53:07 +01:00
CommandStation-EX/objdump.bat
Asbelos d5ca866972 Create objdump.bat
Useful bat file to view the memory allocations made by the compiler
2020-07-15 20:05:03 +01:00

7 lines
254 B
Batchfile

ECHO ON
FOR /F "delims=" %%i IN ('dir %TMP%\arduino_build_* /b /ad-h /t:c /od') DO SET a=%%i
echo Most recent subfolder: %a%
avr-objdump -x -C %TMP%\%a%\CVReader.ino.elf | find ".text" | sort /+25 /R >%TMP%\OBJDUMP_%a%.txt
notepad %TMP%\OBJDUMP_%a%.txt