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.

TMS320C6701: 函数调用时的时间开销

Part Number: TMS320C6701


您好,最近我在统计函数运行时间的时候遇到一个问题,在函数主体内部如下:

void f1()

{

....//some variable define

func_a();

func_b();

}

我们知道f1执行的时间(t0)等于 func_a执行的时间(t1)、func_b执行的时间(t2),以及f1调用这两者时所需要的时间(t3), 即t0=t1+t2+t3,但对于t3具体需要多少个cpu cycle, 软件是怎么计算得到的呢,

我知道t3可以通过软件的profile功能知道,但在程序设计阶段,我想评估t3的时间,我有什么好的办法吗?

非常期待您的回答!