This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 5f736ee1604c4b683eb31c72d511167553c8bd3a Author: Kerogit <kr....@kerogit.eu> AuthorDate: Sun May 25 22:02:24 2025 +0200 arch/avr: make linker print memory usage if GCC is used This option provides useful overview of used memory and should have no downsides. Signed-off-by: Kerogit <kr....@kerogit.eu> --- arch/avr/src/avr/Toolchain.defs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/avr/src/avr/Toolchain.defs b/arch/avr/src/avr/Toolchain.defs index 9737b8d524..54ba8416ee 100644 --- a/arch/avr/src/avr/Toolchain.defs +++ b/arch/avr/src/avr/Toolchain.defs @@ -110,6 +110,10 @@ ifeq ($(CONFIG_DEBUG_LINK_MAP),y) LDFLAGS += -Map=$(call CONVERT_PATH,$(TOPDIR)$(DELIM)nuttx.map) endif +ifeq ($(CONFIG_ARCH_TOOLCHAIN_GCC),y) + LDFLAGS += --print-memory-usage +endif + ifneq ($(CONFIG_DEBUG_NOOPT),y) ARCHOPTIMIZATION += -fno-strict-aliasing endif