SPRUI04G June 2015 – August 2025
The C6000 C/C++ compiler supports all of the keywords (such as const and volatile) specified in the corresponding language standard (C89, C99, C11, C++14), depending on whether the language mode is C or C++ and whether strict ANSI mode is enabled.
Some of the keywords that the compiler supports are:
Some keywords are not available in strict ANSI mode. For example, the inline and restrict keywords, which are keywords in C99 but not C89, are not available as keywords in C89 strict ANSI mode. These features are still available as extensions to the language in the form of __inline and __restrict, as are other keywords that are introduced in later versions of the standard. You can use the keyword names with leading underscores whether or not you are using strict ANSI mode. See Section 7.13.3 for a discussion of why the non-underscore versions of these keywords are not accepted in strict ANSI mode.
The TI compiler also adds its own keywords, such as "cregister". As with the standard keywords, this keyword is not available in strict ANSI mode, but the alternate form "__cregister" is always available. The same is true for other target-specific keywords when using strict ANSI mode; the alternate form prefixed by two underscores is always available.