Tool/software: TI C/C++ Compiler
I need to write parts of my application in assembly for performance reasons (not inline assembler), and would like to do so in a portable manner (across compilers). I noticed that Tivaware includes the file "inc/asmdefs.h" which seems to be designed for exactly this purpose, but it does not contain any definitions for the TI/CCS compiler. Is this a holdover from Stellaris that needs to be updated?
I believe there should be a section of this file something like the following (I've left all the details blank in case someone stumbles across this post and tries to blindly use what I believe to be the correct mnemonics, since I'm no expert on this topic).
//******************************************************** // // The defines required for CCS. // //***************************************************************************** #if defined(ccs) // // The assembly code preamble required to put the assembler into the correct // configuration. // ... // // Section headers. // #define __LIBRARY__ ... #define __TEXT__ ... #define __DATA__ ... #define __BSS__ ... #define __TEXT_NOROOT__ ... // // Assembler nmenonics. // #define __ALIGN__ ... #define __END__ ... #define __EXPORT__ ... #define __IMPORT__ ... #define __LABEL__ ... #define __STR__ ... #define __THUMB_LABEL__ ... #define __WORD__ ... #define __INLINE_DATA__ ... #endif // ccs
Is a more recent version available that contains these definitions?