Hi,
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,
-George
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.
Gerogem,
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.
Geroge,
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.