Hi All,
I am working with TMS320C64x+ processor on Code Composer Studio of Version 4.2.0.10018. My goal is to Optimize a code so that the current MIPS of the code being around 140 has to be reduced to around 50. I was able to reduce the cycles of the code with C code optimization technique and with Compiler options. I am now with MIPS around 80. I am trying to Optimize the code with Linear Assembly code which seems to be the final option to optimize the code further. I converted the available code to Linear Assembly code (.sa file). But the MIPS has not decreased with Linear Assembly code.
The content in my code is such that it has a loop which in turn has 3 functions, each function containing a loop. I have tried my best in using most of the possible ways to reduce the MIPS.
My doubt is, when the code generation tool itself does the work of software pipelining, loop unrolling and all other techniques with the C code itself, why do we need to go for Linear Assembly code? I have seen many materials/documents stating the 3 techniques of optimizing a code 1) Optimizing the C code 2) Using compiler options 3) Using Linear Assembly code. But i have not seen any material, explaining all these techniques sequentially ( using the output of one technique as the input to the other technique of the 3)
So, could anybody help me in clearing my doubts and in reducing the MIPS of the code with the help of Linear Assembly code. If am not clear with my words or i need to give some more info, please let me know so that i could write it in better way.
Regards,
Pandiyarajan.P