How to resolve audio distortion issue while running audio projects in Ezkit
Enable optimization using -Ov num (optimize for speed versus size) switch which informs the compiler of the relative importance of speed versus size, when considering whether such trade-offs are worthwhile. The num variable should be an integer between 0 (purely size) and 100 (purely speed). The –Ov100 setting attempts to optimize purely for speed (and therefore inline a greater number of functions) whereas the -Ov0 setting attempts to optimize purely for space (and therefore inline fewer functions).
To enable optimization go to Project Options Project->Properties->C/C++ Build->Settings->Tool settings->CrossCore SHARC C/C++ Compiler->General->Enable optimization.
Once enabled, the Optimize for code size/speed slider control becomes available.
We recommend to refer the below chapter in CCES help:
Help > CrossCore® Embedded Studio <version> SHARC® Development Tools Documentation > C/C++ Compiler Manual for SHARC® Processors> Optimal Performance From C/C++ Source Code