1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Create objdump.bat

Useful bat file to view the memory allocations made by the compiler
This commit is contained in:
Asbelos 2020-07-15 20:05:03 +01:00
parent 0138c50f41
commit d5ca866972

6
objdump.bat Normal file
View File

@ -0,0 +1,6 @@
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