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.
Part Number: TMS320F28035
Tool/software: TI C/C++ Compiler
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,
TI C/C++ Compiler Forum ModeratorPlease click This Resolved My Issue on the best reply to your questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to George Mock:
In reply to Brian:
Please see if the wiki article section titled Accessing Assembly from C Questions is helpful.
Thank for your kindly help!
I'm finishing the function and it's working now.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.