CARM User's Guide

Discontinued

Predefined Macros

The CARM Compiler provides the following predefined constants you may use in preprocessor directives and C code to create portable programs.

ConstantDescription
__CA__Version number of the compiler (for example, 101 for version 1.01).
__DATE__Date when the compilation was started in ANSI format (month dd yyyy).
__FILE__Name of the file being compiled.
__FLOAT64__Defined to 1 to indicate that the FLOAT64 directive is active.
__KEIL__Defined to 1 to indicate the Keil CARM Compiler is used.
__LINE__Current line number in the file being compiled.
__THUMB__CPU mode selected:
__TIME__Time when the compilation was started.
__STDC__Defined to 1 to indicate full conformance with the ANSI C Standard.

Note

  • There are two (2) leading and trailing underscore characters ('_') used for the predefined constants.