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.

ccsv5 的6.1编译器CLA的C代码中可以用asm嵌入汇编吗



ccsv5 的6.1编译器CLA的C代码中可以用asm("  ")嵌入汇编吗

如果不能怎么才能在CLA的C代码中调用汇编指令

  • 将你要写的汇编语句写成一个函数,然后调用就可以了,但只能函数嵌套一次,也就是下面所提到的Leaf Function

    CLA Function NestingThe compiler supports 2 level of function calls. Functions declared as interrupts may call leaf functions only. Leaf function may not call other functions. Functions not declared as interrupt will be considered leaf functions.