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.

在OMAPL138上测试代码运行周期的方法。



OMAPL138有两个性能计数寄存器EMUCNT0(0x01C111F0),EMUCNT1(0x01C111F4),运行在CPU/4的时钟频率,在上电后,通过写EMUCNT0启动计数,启动后不能停止计数,除非上电复位。读EMUCNT0必需跟着读EMUCNT1,否则后续的计数可能会不正确。
 
下面分别用EMUCNTCCS profile clock对同一段程序的运行周期数做统计对比。
详见附件。