diff --git a/CMakeLists.txt b/CMakeLists.txt index 711c7d8..7bd2695 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,8 @@ add_library(runtime_host STATIC) target_compile_options(runtime_host PRIVATE -O2 + -fdata-sections + -ffunction-sections ) target_compile_options(runtime_host @@ -79,6 +81,8 @@ add_library(runtime_cluster_snitch STATIC) target_compile_options(runtime_cluster_snitch PRIVATE -O2 + -ffunction-sections + -fdata-sections ) target_compile_options(runtime_cluster_snitch diff --git a/tests/chimera-host/host/returnZero/CMakeLists.txt b/tests/chimera-host/host/returnZero/CMakeLists.txt index e3f58aa..9bced50 100644 --- a/tests/chimera-host/host/returnZero/CMakeLists.txt +++ b/tests/chimera-host/host/returnZero/CMakeLists.txt @@ -30,4 +30,20 @@ add_chimera_test( # WIESEP: Link the host to the test executable target_link_libraries(${TEST_NAME} PUBLIC ${TEST_NAME}_host) +################################################################################ +# Debugging Options # +################################################################################ + +target_compile_options(${TEST_NAME}_host + PUBLIC + -ffunction-sections + -fdata-sections +) + +# target_link_options(${TEST_NAME} +# PUBLIC +# -Wl,--print-memory-usage +# -Wl,--print-gc-sections +# -Wl,--gc-sections +# ) diff --git a/tests/chimera-open/snitchCluster/simpleOffload/CMakeLists.txt b/tests/chimera-open/snitchCluster/simpleOffload/CMakeLists.txt index 2c1f0bc..f3e565f 100644 --- a/tests/chimera-open/snitchCluster/simpleOffload/CMakeLists.txt +++ b/tests/chimera-open/snitchCluster/simpleOffload/CMakeLists.txt @@ -46,3 +46,26 @@ add_chimera_test( target_link_libraries(${TEST_NAME} PUBLIC ${TEST_NAME}_host) target_link_libraries(${TEST_NAME} PUBLIC ${TEST_NAME}_cluster) +################################################################################ +# Debugging Options # +################################################################################ + +target_compile_options(${TEST_NAME}_host + PUBLIC + -ffunction-sections + -fdata-sections +) + +target_compile_options(${TEST_NAME}_cluster + PUBLIC + -ffunction-sections + -fdata-sections +) + +# target_link_options(${TEST_NAME} +# PUBLIC +# -Wl,--print-memory-usage +# -Wl,--print-gc-sections +# -Wl,--gc-sections +# ) +