TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F280039C: TI 的函数调用出栈入栈时间比较长, 可以怎样优化?

Part Number:TMS320F280039C

TI 的函数调用出栈入栈时间比较长, 可以怎样优化? 

Yale Li:

我已经咨询了相关工程师:

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1274230/tms320f280039c-ti-s-function-calls-take-a-long-time-to-pop-into-and-out-of-the-stack-how-can-they-be-optimized

,

derik ?:

Thanks♪(・ω・)ノ

,

Yale Li:

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.

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F280039C: TI 的函数调用出栈入栈时间比较长, 可以怎样优化?
分享到: 更多 (0)