Display some size information about the image (used data) at the end of the compilation.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Wed, 9 Sep 2015 19:10:14 +0000 (21:10 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
Makefile

index 327738f..41ce6a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,7 @@ NAME_DEPS = ${NAME_OBJS:%.o=$(OBJDIR)/%.d}
        @echo "Creating image : \e[32m$@\e[39m"
        @$(CROSS_COMPILE)objcopy -R .stack -R .bss -O binary $^ $@
        @ls -l $@
+       @$(CROSS_COMPILE)size $^
        @echo Done.
 
 ${OBJDIR}/%.o: %.c