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.

System_printf执行时间的疑问?

建了一个SYS/BIOS小工程,对比了一下System_printf和printf的执行时间,都是在同样的环境下,为什么System_printf还没有printf执行的快?

程序是都是在DDR中测试的,而且BIOS.libType = BIOS.LibType_Custom;

1、为什么System_printf还没有printf执行的快?

2、另外,注意到:在第一次循环时,不管哪个函数,都比以后的循环执行时间要长很多,像这个情况,不只是出现在System_printf和printf上面,我发现在测试其他代码时,只要是循环执行这个代码段,都有这种情况,为什么第一次时间要比后面的执行时间长这么多?