diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -96,6 +96,7 @@ OBJCOPY=$(TOOLCHAIN_PATH)/$(TOOLCHAIN_PR AS=$(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)-as AR=$(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)-ar GDB=$(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)-gdb +SIZE=$(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)-size all: $(OBJ) @@ -110,3 +111,9 @@ clean: rm -f $(TARGET).elf rm -f $(TARGET).hex rm -f $(TARGET).bin + +# Display size +size: $(TARGET).elf + @echo Invoking: ARM GNU Print Size + $(SIZE) --format=berkeley $< + @echo