Skip to content

Commit a5bb591

Browse files
[buildmgr, projmgr] Default options: print memory usage to the console
1 parent c3eb13c commit a5bb591

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/buildmgr/cbuildgen/config/AC6.6.16.2.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ set (ELF2HEX --i32combined --output "${OUT_DIR}/${HEX_FILE}" "${OUT_DIR}/$<TARGE
732732
set (ELF2BIN --bin --output "${OUT_DIR}/${BIN_FILE}" "${OUT_DIR}/$<TARGET_PROPERTY:${TARGET},OUTPUT_NAME>$<TARGET_PROPERTY:${TARGET},SUFFIX>")
733733

734734
# Linker Map file generation
735-
set (LD_MAP --map --info summarysizes --summary_stderr --list=${OUT_DIR}/${LD_MAP_FILE})
735+
set (LD_MAP --map --list=${OUT_DIR}/${LD_MAP_FILE})
736736

737737
# Set CMake variables for toolchain initialization
738738
set(CMAKE_C_FLAGS_INIT "${CC_CPU}")

tools/projmgr/templates/cdefault.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ default:
1313
- -masm=auto
1414
Link:
1515
- --entry=Reset_Handler
16+
- --info summarysizes
17+
- --summary_stderr
1618
- --diag_suppress=L6314W
1719

1820
- for-compiler: GCC
@@ -26,6 +28,7 @@ default:
2628
Link:
2729
- --specs=nano.specs
2830
- --specs=nosys.specs
31+
- -Wl,-print-memory-usage
2932
- -Wl,--gc-sections
3033
- -Wl,--no-warn-rwx-segments # suppress incorrect linker warning
3134

@@ -38,6 +41,7 @@ default:
3841
- -std=gnu11
3942
Link:
4043
- -lcrt0
44+
- -Wl,-print-memory-usage
4145
- -Wl,--gc-sections
4246

4347
- for-compiler: IAR

0 commit comments

Comments
 (0)