From: Ian Jackson Date: Thu, 9 Aug 2012 18:03:12 +0000 (+0100) Subject: Makefile: Better display of size (device memory usage) X-Git-Tag: firmware-tested-2012-08-10^2^2~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3f15b7c7b863abfa2c6cb157a7f220ab9627d776;p=marlin.git Makefile: Better display of size (device memory usage) Run avr-size with the --mcu=... -C option as well. That reports how much actual device program and data memory is used along with a percentage fullness. Signed-off-by: Ian Jackson --- diff --git a/Marlin/Makefile b/Marlin/Makefile index a85111d..940bb16 100644 --- a/Marlin/Makefile +++ b/Marlin/Makefile @@ -221,7 +221,8 @@ endif # Display size of file. HEXSIZE = $(SIZE) --target=$(FORMAT) applet/$(TARGET).hex -ELFSIZE = $(SIZE) applet/$(TARGET).elf +ELFSIZE = $(SIZE) --mcu=$(MCU) -C applet/$(TARGET).elf; \ + $(SIZE) applet/$(TARGET).elf sizebefore: $P if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi