Hi,
How do I optimize code compilation by size with NCS 1.7.0?
Thanks
Hi,
How do I optimize code compilation by size with NCS 1.7.0?
Thanks
Hi,
How do I optimize code compilation by size with NCS 1.7.0?
This is the configuration you set to enable optimizing for size "-Os":
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/kconfig/CONFIG_SIZE_OPTIMIZATIONS.html
This is the default setting, unless you explicitly select one of the other optimizations:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/kconfig/choice_803.html#choice-803
Kind regards,
Håkon
Hi Hakon
I not have the Build and Link Features → Compiler Options → Optimization level

I have only build but not have compiler option. The tools are SEGGER Embedded Studio for ARM (Nordic Edition) V5.60
Thanks
Fausto
Hi,
If you go into "project -> configure nRF connect SDK project", you can see these kconfig symbols.
To make them persistent, you need to set it in your applications prj.conf file.
As mentioned, the default is to optimize for size.
Kind regards,
Håkon
Hi,
If you go into "project -> configure nRF connect SDK project", you can see these kconfig symbols.
To make them persistent, you need to set it in your applications prj.conf file.
As mentioned, the default is to optimize for size.
Kind regards,
Håkon