1、在CCS5.5中,使用profile测量c6748的程序执行时间准确吗?如果不准确,是偏大还是偏小?
2、在CCS5.5中,使用TSCL和TSCH测量程序执行时间为什么这两个寄存器的值一直是0,而没有变化?
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.
1、在CCS5.5中,使用profile测量c6748的程序执行时间准确吗?如果不准确,是偏大还是偏小?
2、在CCS5.5中,使用TSCL和TSCH测量程序执行时间为什么这两个寄存器的值一直是0,而没有变化?
不精准,所以 C6000 hardware不支持profile功能,具体见下面的FAQ
http://processors.wiki.ti.com/index.php/FAQ_-_CCSv5#Q:_Why_is_function_profiling_not_supported_on_C6000_hardware.3F
是不是类似于下面这种?
void main() {
unsigned long long t1, t2;
...
TSCL = 0; // Initiate CPU timer by writing any val to TSCL
...
t1 = _itoll( TSCH, TSCL ); // benchmark snapshot of free-running ctr
my_code_to_benchmark();
t2 = _itoll( TSCH, TSCL ); // benchmark snapshot of free-running ctr
printf("# cycles == %ld\n", (t2-t1));
}