Size the output

This commit is contained in:
Romain Goyet
2015-08-04 20:34:09 +02:00
parent 067c53d705
commit 203ecd5055

View File

@@ -67,6 +67,12 @@ include poincare/Makefile
objs += src/hello.o
size: boot.elf
@echo "========= BUILD OUTPUT ========"
@echo "File: $<"
@arm-none-eabi-size $< | tail -n 1 | awk '{print "Code: " $$1 " bytes";print "Data: " $$2 " bytes"; print "Total: " $$1 + $$2 " bytes";}'
@echo "==============================="
run: boot.elf
$(GDB) -x gdb_script.gdb boot.elf