Optimization

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

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

Excuse me.

There is a problem that has been bothering me for a long time.

 

I would like to know how to set the code optimization level in Modus Tool.

 

Thank you .

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

You might want to look at this post. There is an additional step to do in the makefile.

https://community.infineon.com/t5/ModusToolbox-General/Optimization-Level-in-Modus-Toolbox/m-p/28955...

Set "CONFIG=Custom"

View solution in original post

0 Likes
2 Replies
Krupashankar
Moderator
Moderator
Moderator
500 replies posted 50 likes received 25 likes received

Hi @JCD,

Please find your makefile and edit CFLAGS define:

CFLAGS=-Os

Krupashankar_0-1642158756108.png

Different optimization levels for compiler :  https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

You could also refer to Modul tool box user guide.

 

 
Thanks,
Krupashankar
0 Likes
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

You might want to look at this post. There is an additional step to do in the makefile.

https://community.infineon.com/t5/ModusToolbox-General/Optimization-Level-in-Modus-Toolbox/m-p/28955...

Set "CONFIG=Custom"

0 Likes