6657的裸机程序运行时,监控一段时间的CPU指令执行情况,发现频繁出现pipeline stall:
一句汇编指令可能本来只需要1-2个cycle,结果执行了2000多个cycle。
请问会是什么原因导致的呢?
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.
6657的裸机程序运行时,监控一段时间的CPU指令执行情况,发现频繁出现pipeline stall:
一句汇编指令可能本来只需要1-2个cycle,结果执行了2000多个cycle。
请问会是什么原因导致的呢?
编译的时候可以选择-O2, -O3进行流水线优化,请看下面的编译器书册。
4.2 Optimizing Software Pipelining
https://www.ti.com/lit/ug/sprui04b/sprui04b.pdf