My Project size is
text | data | bss | dec | hex | filename |
6392 | 32 | 836 | 7260 | 1c5c | Bootloader.elf |
How to reduce the code size ?
Am using MKE02Z64VLD2 microcontroller
KDS 2.0
I found this link while searching. But this is explained for codewarrior. For KDS I could not adopt the same method.
https://mcuoneclipse.com/2012/11/11/optimizing-the-kinetis-gcc-startup/
Solved! Go to Solution.
The simplest thing is to turn on compiler optimizations, have you done this already?
Erich
The simplest thing is to turn on compiler optimizations, have you done this already?
Erich
Hey Erich, In Project -> Properties -> C/C++ build -> Settings -> Tool Settings -> Optimization. In Optimization level, I selected Optimize Size (-Os) and Built the code. From size of 6392, it has come down to 3780. But in the above quoted article of yours, you have changed the Linker flags in the settings and still reduced the size, how is it possible in KDS , as there is no such linker flags option in my IDE.
Hi,
Can you tell me how to turn on compiler optimizations in CodeWarrior?