同一个文件的同一页的最上面一段,人家TI都说了是编译器内嵌函数可以直接用,他妈看不懂英文就不要说话,好好看看再放屁。在122页 The C28x compiler recognizes a number of intrinsic operators. Intrinsics allow you to express the meaning of certain assembly statements that would otherwise be cumbersome or inexpressible in C/C++. Intrinsics are used like functions; you can use C/C++ variables with these intrinsics, just as you would with any normal function. The intrinsics are specified with a leading underscore, and are accessed by calling them as you do a function. For example: long lvar; int ivar; unsigned int uivar; lvar = __mpyxu(ivar, uivar); The intrinsics listed in Table 7-6 are included. They correspond to the indicated TMS320C28x assembly language instruction(s). See the TMS320C28x CPU and Instruction Set Reference Guide for more information.
int b; int *array; __byte(array,5) = 10; b = __byte(array,20);
它会出警告,不过哥哥我懒得改, 警告是这样的 "Example_281xGpioToggle.c", line 55: warning: variable "array" is used before its value is set "Example_281xGpioToggle.c", line 53: warning: variable "b" was set but never used
当然你也可以到CCS里面找到说明,CCS Help->Code Generation Tools -> optimizing the C/C++ compiler ->Run-Time environment ->Accessing assembly language ->using intrinsics to access assembly