2.6.1. TI-Specific Pre-Defined Macro Symbols¶
The tiarmclang 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 tiarmclang compiler version being used:
Symbol |
Value Kind |
Value / Description |
|---|---|---|
|
<constant> |
Defined to 1 if TI is the compiler vendor. |
|
<version> |
Identifies major version number. |
|
<version> |
Identifies minor version number. |
|
<version> |
Identifies patch version number. |
|
<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. |