2020-07-15 21:05:03 +02:00
|
|
|
ECHO ON
|
2025-01-23 11:46:39 +01:00
|
|
|
FOR /F "delims=" %%i IN ('dir %TMP%\arduino\sketches\CommandStation-EX.ino.elf /s /b /o-D') DO SET ELF=%%i
|
|
|
|
SET DUMP=%TEMP%\OBJDUMP.txt
|
|
|
|
echo Most recent subfolder: %ELF% >%DUMP%
|
|
|
|
|
2022-06-18 14:58:46 +02:00
|
|
|
set PATH="C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\";%PATH%
|
2025-01-23 11:46:39 +01:00
|
|
|
avr-objdump --private=mem-usage %ELF% >>%DUMP%
|
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%DUMP%
|
|
|
|
avr-objdump -x -C %ELF% | find ".text" | sort /+25 /R >>%DUMP%
|
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%DUMP%
|
|
|
|
avr-objdump -x -C %ELF% | find ".data" | sort /+25 /R >>%DUMP%
|
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%DUMP%
|
|
|
|
avr-objdump -x -C %ELF% | find ".bss" | sort /+25 /R >>%DUMP%
|
|
|
|
ECHO ++++++++++++++++++++++++++++++++++ >>%DUMP%
|
|
|
|
avr-objdump -D -S %ELF% >>%DUMP%
|
|
|
|
%DUMP%
|
2020-07-24 13:00:24 +02:00
|
|
|
EXIT
|