How to do optimisation in modus toolbox

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

cross mob
NA97
Level 3
Level 3
50 sign-ins 10 replies posted 25 sign-ins

NA97_0-1699041080131.png

when I go to properties it only provides me this option How to do optimisation or custom library addition in the properties under c/c++ built setting

0 Likes
1 Solution
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @NA97 ,

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

CFLAGS=-Os

CFLAGS  is among the environment variables conventionally used to specify compiler options to a build system when compiling C and C++ code.

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

Best Regards,

Aashita

View solution in original post

0 Likes
1 Reply
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @NA97 ,

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

CFLAGS=-Os

CFLAGS  is among the environment variables conventionally used to specify compiler options to a build system when compiling C and C++ code.

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

Best Regards,

Aashita

0 Likes