In a MSP430F2274 project compiled with TI MSP430 compiler 4.1, a part of conditional precompiled content depending on predefined macro “_ _TI_COMPILER_VERSION_ _” is darkened.
In MSP430’s manual SLAU132 “_ _TI_COMPILER_VERSION_ _” is defined. Examination of the .pp source file also showed that part enclosed in the conditional block directly below
#elif (defined __TI_COMPILER_VERSION__) && (defined __MSP430__)
has been included in the file. However the syntax highlighting of CCS still show the block (the conditional block directly below the cited line above) in gray. This wasted us a significant time because we traced back and forth in vain for locating a specific definition without going into the <msp430.h> which has been grayed.
We would like to know is the inconsistency between “__TI_COMPILER_VERSION__” and CCS highlighting a known problem? Matt
This is mishandled by CCS. I'll get something filed on this and get back to you with the ID number for it.
The problem here is that __TI_COMPILER_VERSION__ is a special preprocessor symbol that is defined not by the user, but by the compiler. It is a good guess that CCS does not consider such symbols when parsing the C code to figure out how to highlight it.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Thanks, now we understand it.
This issue is filed in the SDOWP system with id SDSCM00044279. Feel free to track it with the SDOWP link below in my signature.
I saw the report. Thanks. Now I just try to manually spot or search for the __TI_COMPILER_VERSION__ keyword when I suspect any problem from it. Hope the new release could fix it soon.
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.