diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-04-11 10:34:29 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-04-11 10:34:54 +0100 |
commit | 7e56d8f55c770204deaa2de644990828b9ff083b (patch) | |
tree | 7bcac9034d86d8d4205ed6ca42907b884e6849a4 /scripts/cmake/toolchains/bare-metal-armclang.cmake | |
parent | 4cc4021d356c174f780be2b7ef96910e36c8dd7b (diff) | |
download | ml-embedded-evaluation-kit-7e56d8f55c770204deaa2de644990828b9ff083b.tar.gz |
MLECO-3071: Reducing stack sizes
After evaluating stack sizes (after HAL refactoring) we can
safely reduce the stack allocation for all the applications.
Change-Id: I7d9cd4edd28753fe3f8a668d8c557c2788f4c823
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'scripts/cmake/toolchains/bare-metal-armclang.cmake')
-rw-r--r-- | scripts/cmake/toolchains/bare-metal-armclang.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/cmake/toolchains/bare-metal-armclang.cmake b/scripts/cmake/toolchains/bare-metal-armclang.cmake index 9752053..d0b0824 100644 --- a/scripts/cmake/toolchains/bare-metal-armclang.cmake +++ b/scripts/cmake/toolchains/bare-metal-armclang.cmake @@ -84,14 +84,21 @@ add_compile_definitions( add_link_options(${CPU_LINK_OPT}) set(CMAKE_ASM_FLAGS "${CPU_LINK_OPT}") +set(ARMCLANG_INFO_STR "sizes,totals,unused,veneers,summarysizes") +if(CMAKE_BUILD_TYPE STREQUAL Debug) + # For debug builds, we can add stack information too: + set(ARMCLANG_INFO_STR "${ARMCLANG_INFO_STR},stack,summarystack") +endif() + # Warnings to be ignored: # L6314W = No section matches pattern # L6439W = Multiply defined Global Symbol add_link_options( --diag_suppress=L6439W,L6314W - --info sizes,totals,unused,veneers + --info ${ARMCLANG_INFO_STR} --strict --callgraph + --no_exceptions --load_addr_map_info --xref "$<$<CONFIG:RELEASE>:--no_debug>") |