Even after building code with optimization level -0s. There is no change in size, it just get adjusted with .text and .data.
I am facing issue of memory with Stm32L432xx, So i tried option of increase optimization level from -01 to -0s.
But observe no change it just reduce in .text section... but it increased in .data segment. ultimately value is same and issue is continue
Before optimization i.e -01
text data bss dec hex filename
117760 11264 30064 159088 26d70 build/app-firmware.elf
After optimization level set -0s
text data bss dec hex filename
117480 11544 30064 159088 26d70 build/app-firmware.elf