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.

_mfence(),在附件中已描述问题,现在编译不通过,如何解决?????



把有_mfence()都注释掉后也有问题:1

Description Resource Path Location Type
#10010 errors encountered during linking; "Test4.out" not built Test4 C/C++ Problem

2

Description Resource Path Location Type
<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain Test4 C/C++ Problem

Description Resource Path Location Type
unresolved symbol __mfence, first referenced in ./src/KeyStone_common.obj Test4 C/C++ Problem

  • #include <c6x.h>

    如果_mfence()不行,直接用mfence()

  • 我用的是evm6638k2k,CCSv6.2.0,MCSDK3.1.4.7,编译器试过v7.4.20和v8.1.3(都是现在最新的v7.4.x和v8.1.x版本),工程使用了CSLv2.1.1.0,在编译时遇到很多_mfence is undefined的问题,都是CSL里面调用的,如csl_cacheAux.h里的1017行。

    我查了下,_mfence声明在编译器的include目录下的c6x.h里,但用#if defined(_TMS320C6600)括起来了。如果工程选芯片TMS320C6670的话,该编译条件就为true,如果选TCI6638K2K,则false,然后就上面的undefined错误了。

    v2.1.1.0的CSL写明支持K2K的,而且这个指令不是所有c66x的corepac都支持的吗?

    怎么解决这个CSL的问题?