How to do Optimization code in C?

Need to Optimise my code

You can enable code optimization for compiler. In STM32Cube IDE, you can change the optimization level as shown in the image. Also their are some best practices to further optimize the code which you can find here. You can adopt those steps.

1 Like