How to set optimization level in ModusToolbox?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jsmith678x
Level 4
Level 4
100 sign-ins 25 replies posted First solution authored

Hi

 

How to set optimization level in ModusToolbox?

I'm also looking for other settings, see the screenshot

 

jsmith678x_0-1612689722012.png

 

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

The easiest way is to edit the Makefile directly. You can add in the CFLAGS define:

CFLAGS=-Os

https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

View solution in original post

0 Likes
3 Replies
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

The easiest way is to edit the Makefile directly. You can add in the CFLAGS define:

CFLAGS=-Os

https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

0 Likes

This Makefile won't regenerate? So when I add an option it won't disappear?

0 Likes

No. Every project has its own Makefile and can only be edited by the user. The tool will not change it.

You actually need to modify it if you want to use some libraries, like the FreeRTOS, WiFi and so on.

0 Likes