How to change -0s default to -03?

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
User avatar
MasterT
Posts: 33
Joined: Mon Apr 20, 2020 12:02 am

How to change -0s default to -03?

Post by MasterT »

Whenever I select another board all settings reset to default, including compiler flags -0s. How to make -03 as default?
I find that AVR boards are referenced to platform.local.txt, what about nucleo?
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: How to change -0s default to -03?

Post by ag123 »

maybe try looking in platforms.txt or boards.txt?
you could patch your copy of the core locally
just be aware, -O3 can blow the budget of flash memory and sram on your stm32, there is a reason -Os is selected
Post Reply

Return to “IDE's”