I tried using "C intrinsics" provided for ETSI basic ops to help me
optimize a speech codec performance. It has a piece of code which
for(i = 0; i < 10; i++)
a = L_mac(a,b,c);
The compiler generates the following code with -03 option
; loop starts
MAC *(BL), A
; loop ends ;
Some of the statements within the loop such as setting the FRCT bit
and the OVM bit can be done outside the loop (only once). Some of the
code such as sign extending into guard bits looks redundant.
Is there a way to instruct the compiler to generate better code. I am
using version 2.00.00 of CCS. Or we have to live with this and hand
optimize in assembly?
Thanks In Advance.