2020-07-15 21:05:03 +02:00
|
|
|
ECHO ON
|
|
|
|
FOR /F "delims=" %%i IN ('dir %TMP%\arduino_build_* /b /ad-h /t:c /od') DO SET a=%%i
|
2020-07-15 21:26:19 +02:00
|
|
|
echo Most recent subfolder: %a% >%TMP%\OBJDUMP_%a%.txt
|
2020-09-26 13:01:00 +02:00
|
|
|
SET ELF=%TMP%\%a%\CommandStation-EX.ino.elf
|
|
|
|
|
|
|
|
avr-objdump --private=mem-usage %ELF% >>%TMP%\OBJDUMP_%a%.txt
|
2020-07-15 21:26:19 +02:00
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%TMP%\OBJDUMP_%a%.txt
|
2020-09-26 13:01:00 +02:00
|
|
|
avr-objdump -x -C %ELF% | find ".text" | sort /+25 /R >>%TMP%\OBJDUMP_%a%.txt
|
2020-07-15 21:26:19 +02:00
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%TMP%\OBJDUMP_%a%.txt
|
2020-09-26 13:01:00 +02:00
|
|
|
avr-objdump -x -C %ELF% | find ".data" | sort /+25 /R >>%TMP%\OBJDUMP_%a%.txt
|
2020-07-15 21:26:19 +02:00
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%TMP%\OBJDUMP_%a%.txt
|
2020-09-26 13:01:00 +02:00
|
|
|
avr-objdump -x -C %ELF% | find ".bss" | sort /+25 /R >>%TMP%\OBJDUMP_%a%.txt
|
2020-07-15 21:05:03 +02:00
|
|
|
notepad %TMP%\OBJDUMP_%a%.txt
|
2020-07-24 13:00:24 +02:00
|
|
|
EXIT
|