mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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.git@kerogit.eu>
This commit is contained in:
parent
78b0a98747
commit
5f736ee160
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue