diff options
author | JF002 <JF002@users.noreply.github.com> | 2021-06-01 21:03:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 21:03:01 +0200 |
commit | 1b6acdedc2ae892bece04479a64ad28120eced8c (patch) | |
tree | 08e470ec01c51ccbefd0be1759efe0177484821c /src/drivers/DebugPins.cpp | |
parent | c0b0f8cb732f0cd8c6a519a97f41b0ef6275a24f (diff) |
Enable various compilation flags to reduce the binary size (#401)
* Add the following compilation flags:
* -fno-exceptions and -fno-non-call-exceptions : disable exception handling
* -fno-rtti : disable run time type information (needed by dynamic_cast, for example)
These flags reduce the binary size by about 100KB!
Also, -fstack-usage generate debug info (not in final binary) to allow tools like Puncover to do a stack analysis.
* Remove unused CMake variables in CMake_nRF5x.cmake (duplicated in src/CMakeLists.txt).
Replace -O0 by -Og in DEBUG builds. This generates a smaller binary (small enough for the internal memory) that is debugger friendly.
Diffstat (limited to 'src/drivers/DebugPins.cpp')
0 files changed, 0 insertions, 0 deletions