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.

用rts2800_fpu32_fast_supplement.lib代替rts2800_fpu32.lib是需要删除rts2800_fpu32.lib还是两个都保留?

Other Parts Discussed in Thread: CONTROLSUITE

根据TI最新发布的FPU计算库,它说让rts2800_fpu32_fast_supplement.lib代替rts2800_fpu32.lib,可以让一些数学运算变得更快,我想问一下,“代替”是指:

删除rts2800_fpu32.lib只留rts2800_fpu32_fast_supplement.lib用还是两个都需要添加?

还有rts2800_fpu32_fast_supplement.lib和IQmath_fpu32是什么区别,我用一些简单的加减乘除、平方开方、sin\cos,需要用到哪些库?是rts2800_fpu32_fast_supplement.lib和IQmath_fpu32都需要添加吗?

  • C:\ti\controlSUITE\libs\math\FPUfastRTS\V100\doc

  • To use the fastRTS functions in place of the existing functions the fastRTS library must be
    linked before the existing run-time support library. The fastRTS library replaces only a subset
    of the functions in the current run time support libraries. Therefore, the standard runtime
    support library should be linked after the fastRTS library.


  • rts2800_fpu32.lib和rts2800_fpu32_fast_supplement.lib只留一个就可以,rts2800_fpu32_fast_supplement是经过优化的lib,编译的时候调用会提高运算速度。

    rts2800_fpu32_fast_supplement.lib只有具有FPU的处理器才可以用。IQmath_fpu32是定点DSP用的,比如2812,2808都是通过IQmath把浮点运算转换成定点运算,这样可以提高运算速度。

    如果你的DSP是有FPU的那就可以用rts2800_fpu32_fast_supplement.lib,反之用IQmath_fpu32。

    无论调用哪个lib都要按照相关lib的介绍来调用相关的函数的。

  • 应该不能只使用rts2800_fpu32_fast_supplement.lib吧!rts2800_fpu32_fast_supplement.lib只是rts2800_fpu32.lib的子集,只包含部分数学函数,官方提供rts2800_fpu32_fast_supplement.lib只是替换rts2800_fpu32.lib中部分运算比较耗时的函数,官方用的是汇编编写这些高性能函数。