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.

mathlib_c66x使用问题

Other Parts Discussed in Thread: MATHLIB

在编程中用到余弦函数,如果用标准库<math.h>提供的cos函数,则会占用很多的cycle,如果用TI提供的mathlib_c66x库中的cossp(单精度)余弦函数,并在使用中包含<cossp.h>和<ti/mathlib/src/comm/drvsp.h>以及相应的路径,并且将链接库中加入mathlib_c66x库mathlib.a66,这样仅仅进行编译则通过,如果进行链接,就会报错“linking failed.check the console windows for details.unknown c/c++ problems”

不知道这个错误为什么,求解答,谢谢!

  • chunjie shang,

    您好!

    这个问题可能和大小端和elf格式有关。你是否可以试试换成另外3个文件试试?

    下面是从mathlib_3_0_0_0_release_notes.html中摘出来的说明。

    C66x DSP (COFF, Little-Endian format)

    C66x DSP (COFF, Big-Endian format)

    C66x DSP (ELF, Little-Endian format)

    C66x DSP (ELF, Big-Endian format)