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.
Tool/software: TI C/C++ Compiler
Hi everyone,
I'm a newbie for TMS320F28035. Recently, I'm using cla with C language (CCS 5.5.0) and for some reason I need to use assembly language.
I use the __asm("") to implement the assembly. But I found that when compilation is finished, there will have two additional directives in the cla_task.asm file.
It shown as below. There are additional two MNOP directives at top and bottom. How can I avoid this happen?
Thanks for help
Please see the section titled The __asm Statement in the C28x compiler manual. Closely read the NOTE paragraphs. You should not use __asm statements to load values into registers used by the compiler. That disrupts the code generated by the compiler.
Instead, you should code this entire function in assembly language, and call it from C. For help with that, please see the section titled Interfacing C and C++ With Assembly Language.
Thanks and regards,
-George
Please see if the wiki article section titled Accessing Assembly from C Questions is helpful.
Thanks and regards,
-George
Dear George:
Thank for your kindly help!
I'm finishing the function and it's working now.
Best regard,
Brian