• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » “_ _TI_COMPILER_VERSION_ _” incorrectly treated by syntax highlighter
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

“_ _TI_COMPILER_VERSION_ _” incorrectly treated by syntax highlighter

“_ _TI_COMPILER_VERSION_ _” incorrectly treated by syntax highlighter

This question is answered
Matt Shira
Posted by Matt Shira
on Jun 08 2012 15:05 PM
Expert1800 points

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

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • George Mock
    Posted by George Mock
    on Jun 08 2012 17:18 PM
    Verified Answer
    Verified by Matt Shira
    Guru51475 points

    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 Moderator
    Please 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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Shira
    Posted by Matt Shira
    on Jun 09 2012 04:31 AM
    Expert1800 points

    Gerogem,

    Thanks, now we understand it.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Jun 11 2012 15:12 PM
    Guru51475 points

    This issue is filed in the SDOWP system with id SDSCM00044279.  Feel free to track it with the SDOWP link below in my signature.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please 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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matt Shira
    Posted by Matt Shira
    on Jun 11 2012 19:33 PM
    Expert1800 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

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.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use