Skip to content

Commit 64d3c40

Browse files
author
mean
committed
use print-memory-usage linker command, neat
1 parent 72c3da3 commit 64d3c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Platform/Core/BoardFlags/LinkerFlagsSetterStm32.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ToDo: Comment
22
function(set_board_linker_flags LINKER_FLAGS BOARD_ID IS_MANUAL)
33

4-
set(LINK_FLAGS "${LINK_FLAGS} -Os -Wl,--gc-sections -mcpu=cortex-m3")
4+
set(LINK_FLAGS "${LINK_FLAGS} -Os -Wl,--gc-sections -mcpu=cortex-m3 -Xlinker -print-memory-usage ")
55
set(LINK_FLAGS "${LINK_FLAGS} -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -lstdc++")
66
IF(ARDUINO_USE_NEWLIB) # smaller
77
set(LINK_FLAGS "${LINK_FLAGS} --specs=nano.specs") # -u _printf_float")

0 commit comments

Comments
 (0)