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.

如何测试C6670中一个中断的处理时间



如何测试C6670中一个中断的处理时间,包括保存上下文,中断服务子程序运行到最后恢复到中断处理前的状态间的时间

  • 使用c语言编程时,上下文是自动完成的。可以写一个简单的程序,先读取TSC时间,然后手动触发中断,在中断入口再读取TSC,两者相差为近似的中断入口时间,在退出中断处读取TSC,然后在外面再读取TSC,两者相差为近似的中断恢复退出时间。