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.

Solar.lib中一些函数的CYCLE-COUNT PROFILING RESULTS?

DSP型号:28335

使用solar.lib中的一些函数,比如CNTL_2P2Z,文档中需要60个cycles,但是在28335中调用这个函数,执行完成需要120 cycles.

又比如SPLL_1ph_SOGI,文档中需要210 cycles,实际使用中需要491 cycles.

我是按照文档中的使用方法使用的,不知道为什么差距这么大,请知情人士指点,谢谢

SolarLib.pdf

  • 您是否有参考上面的note?周期数可能会根据配置方法和代码结构而显著变化。

    另外All results representative of non-volatile functions/macros. Library compiled with 6.2.3

  • 好吧,那我就不纠结了。另外,如果我自己按照solar.lib提供的资料,自己写一个函数(假设完全一样),自己写的函数运行速度会不会与调用lib里的函数的运行速度一样呢?还是会慢一些?谢谢

  • 一般来说,库函数会相对快一些