cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox General

jsmith678x
New Contributor

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

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

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
jsmith678x
New Contributor

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

0 Likes
RodolfoGL
Employee

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
Top labels