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.

TDA4VM: ti-cgt-armllvm_3.2.0.LTS编译器不识别部分汇编指令

Part Number: TDA4VM

ti-cgt-armllvm_3.2.0.LTS这个编译器在编译asm文件时,经常不识别一些指令,如下图,有两种错误,一个是if后面需要写绝对表达式,因为这两个宏没有定义,然后就报错了。还有一个是不能识别下面的类似.thumbfunc,.armfunc等指令。

源码如下:

   .if  __TI_ARM_V7M__ | __TI_ARM_V6M0__
        .thumbfunc _c_int00
        .thumbfunc _resetvectors
        .thumbfunc HF
   .else
        .armfunc _c_int00
        .armfunc _resetvectors
        .armfunc HF
   .endif

报错如下:

Targets\sdk\MainIsland\pdk_jacinto_08_05_00_36\packages\ti\csl\arch\r5\src\startup\boot.asm:55:9: error: expected absolute expression

   .if  __TI_ARM_V7M__ | __TI_ARM_V6M0__

        ^

Targets\sdk\MainIsland\pdk_jacinto_08_05_00_36\packages\ti\csl\arch\r5\src\startup\boot.asm:56:2: error: unknown directive

        .thumbfunc _c_int00

        ^

Targets\sdk\MainIsland\pdk_jacinto_08_05_00_36\packages\ti\csl\arch\r5\src\startup\boot.asm:57:2: error: unknown directive

        .thumbfunc _resetvectors

        ^

Targets\sdk\MainIsland\pdk_jacinto_08_05_00_36\packages\ti\csl\arch\r5\src\startup\boot.asm:58:2: error: unknown directive

        .thumbfunc HF

        ^

Targets\sdk\MainIsland\pdk_jacinto_08_05_00_36\packages\ti\csl\arch\r5\src\startup\boot.asm:60:2: error: unknown directive

        .armfunc _c_int00

        ^