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.

TMS320F280039C: TI's function calls take a long time to pop into and out of the stack. How can they be optimized?

Part Number: TMS320F280039C


TI's function calls take a long time to pop into and out of the stack. How can they be optimized?

  • Hello Yale,

    If you look at a function in the Disassembly window, you should be able to see what registers are being pushed/popped. The compiler optimizes to only push/pop relevant registers I believe, so you can double-check to see all the registers which are being pushed/popped are actually used within that function.

    If you want to optimize it, I think the best way to do this is the create an assembly version of the designated function so you can determine what registers you actually need to use. I don't know if there's a CCS setting to optimize the stack usage the way you're describing, but I will forward this to the compiler expert for them to answer.

    Best regards,

    Omer Amir

  • TI's function calls take a long time to pop into and out of the stack

    Exactly how do you see that?  What do you expect to see instead?

    Pick one function that is representative of this behavior.  For the source file that contains this function, please follow the directions in the article How to Submit a Compiler Test Case.  Please indicate the name of this function.

    Thanks and regards,

    -George