Skip to content

Commit

Permalink
[buildmgr, projmgr] Default options: print memory usage to the console (
Browse files Browse the repository at this point in the history
  • Loading branch information
brondani authored Dec 4, 2024
1 parent c3eb13c commit 87b8221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/buildmgr/cbuildgen/config/AC6.6.16.2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ set (ELF2HEX --i32combined --output "${OUT_DIR}/${HEX_FILE}" "${OUT_DIR}/$<TARGE
set (ELF2BIN --bin --output "${OUT_DIR}/${BIN_FILE}" "${OUT_DIR}/$<TARGET_PROPERTY:${TARGET},OUTPUT_NAME>$<TARGET_PROPERTY:${TARGET},SUFFIX>")

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

# Set CMake variables for toolchain initialization
set(CMAKE_C_FLAGS_INIT "${CC_CPU}")
Expand Down
4 changes: 4 additions & 0 deletions tools/projmgr/templates/cdefault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ default:
- -masm=auto
Link:
- --entry=Reset_Handler
- --info summarysizes
- --summary_stderr
- --diag_suppress=L6314W

- for-compiler: GCC
Expand All @@ -26,6 +28,7 @@ default:
Link:
- --specs=nano.specs
- --specs=nosys.specs
- -Wl,-print-memory-usage
- -Wl,--gc-sections
- -Wl,--no-warn-rwx-segments # suppress incorrect linker warning

Expand All @@ -38,6 +41,7 @@ default:
- -std=gnu11
Link:
- -lcrt0
- -Wl,-print-memory-usage
- -Wl,--gc-sections

- for-compiler: IAR
Expand Down

0 comments on commit 87b8221

Please sign in to comment.