2.6.1. TI-Specific Pre-Defined Macro SymbolsΒΆ

The c29clang compiler pre-defines the following TI-specific macro symbols, which can be used when configuring source code to be compiled on the basis of the compiler vendor identification or on the basis of the c29clang compiler version being used:

TI-Specific Compiler Predefined Macro Symbols

Symbol

Value Kind

Value / Description

__ti__

<constant>

Defined to 1 if TI is the compiler vendor.

__ti_major__

<version>

Identifies major version number.

__ti_minor__

<version>

Identifies minor version number.

__ti_patchlevel__

<version>

Identifies patch version number.

__ti_version__

<encoding>

Encoding of major, minor, and patch

version number values associated

with the current release, where:

<encoding> = <major> * 10000
             <minor> * 100
             <patch>

For 1.3.2.LTS, for example, the

value of <encoding> would be 10302.

__TI_EABI__

1

Indicates the output format is EABI.