Hello,
I'm having issue with removing unused variables, when they are
used in unused functions.
I'm using Keil 5.25.2.0, armcc.exe and armlink.exe V5.06 update 6
build 750. My project options are set for space optimization:
- Use cross-module optimization
- One ELF section per function
- -O2 -Ospace
- --remove
My MCU is a STM32F0, Cortex M0.
Here is a sample of what I do :
int unused_data[100];
main(){
some code...
my_unused_function();
some more
↧