This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: The CCS 7.0 Compiler is slower than the CCS 5.0 compiler, why?

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hi, there

I am previously working with CCS 5.0, and I recently upgraded to CCS7.0, here's the problem I see:

One of my project, which is a big one, runs faster with the output file compiled by old CCS 5.0 compiler. Here's is my guess:

In that project, I used a lot structures , for example

Controller[n].error.overpower = 1

For this instruction, If the n is a variable, the CPU need to calculate the address of the variable real time, this kind of slow it a lot down. So, previously in CCS5.0, what I do is use constant instead of variables:

Controller[0].error.overpower = 1

This seems to greatly increased the speed. The compiler seems to pre-calculate the address in the compile stage. The down side of this is more coding effort and code size, which I can take.

However, with the new CCS7.0 compiler, this seems not working, it always calculate the address real time, no matter it is constant or not.

Could you tell me what I need to do to make the compiler calculate the address of a variable at the compiling stage, not the real time.

Or, what I can do to reduce the address calculation at real time?

Thanks

Eric