Working on a side project I was looking at the memory map file for the default build and noticed a couple of functions/globals from unused samples that are somehow left inside the build, mostly a few global MicroBitImage and, I'm not sure how, but also a couple of uncalled functions: version_test and display_wink.
The minor modifications from this PR removes this unused data/code from the build, which saves 20 bytes of RAM and close to 1KB of flash:
# Before
$ arm-none-eabi-size build/MICROBIT
text data bss dec hex filename
216008 8 7164 223180 367cc build/MICROBIT
# After
$ arm-none-eabi-size build/MICROBIT
text data bss dec hex filename
215092 8 7144 222244 36424 build/MICROBIT
Working on a side project I was looking at the memory map file for the default build and noticed a couple of functions/globals from unused samples that are somehow left inside the build, mostly a few global
MicroBitImage
and, I'm not sure how, but also a couple of uncalled functions:version_test
anddisplay_wink
.Some exerpts from the memory map file:
The minor modifications from this PR removes this unused data/code from the build, which saves 20 bytes of RAM and close to 1KB of flash: