ccsv5 的6.1编译器CLA的C代码中可以用asm(" ")嵌入汇编吗
如果不能怎么才能在CLA的C代码中调用汇编指令
Jones Chen:
将你要写的汇编语句写成一个函数,然后调用就可以了,但只能函数嵌套一次,也就是下面所提到的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.