Sep 16, 2022
01:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2022
01:34 AM
Iam trying to find compiler optimization in modustoolbox, not yet found.
I found that on editing CFLAGS variable in the make file will works, but still iam unable to see the optimized code.
Can you please guide me on this ?
Thanks inadvance.
2 Replies
Sep 16, 2022
01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2022
01:51 AM
Hi @save_4621331 :
In makefile, use CFLAGS and CXXFLAGS: Add -Os or -Oz for different optimization level, then build the project.
More optimization level you can refer to this website below:
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Best Regards,
Colin
Sep 18, 2022
04:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 18, 2022
04:16 PM
If you want to use a custom optimization, set "CONFIG=Custom" in the makefile.