Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
228
Predefined symbols
AVR® IAR C/C++ Compiler
Reference Guide
SUMMARY OF PREDEFINED SYMBOLS
The following table summarizes the predefined symbols:
Predefined symbol
Identifies
_ _ALIGNOF__ ()
Accesses the alignment of an object
_ _BASE_FILE_ _
Identifies the name of the file being compiled. If the file is 
a header file, the name of the file that includes the header 
file is identified.
_ _CORE_ _
Identifies the processor variant in use
_ _CPU_ _
Identifies the processor variant in use
_ _cplusplus
Determines whether the compiler runs in C++ mode
*
_ _DATE_ _
Determines the date of compilation
*
_ _derivative_ _
Corresponds to the processor specified with the --cpu 
compiler option
_ _embedded_cplusplus
Determines whether the compiler runs in C++ mode
*
_ _FILE_ _
Identifies the name of the file being compiled
*
_ _func_ _
Expands into a string with the function name as context
_ _FUNCTION__
Expands into a string with the function name as context
_ _HAS_EEPROM__
Determines whether there is an EEPROM available
_ _IAR_SYSTEMS_ICC_ _
Identifies the IAR compiler platform
_ _ICCAVR_ _
Identifies the AVR IAR C/C++ Compiler
_ _LINE_ _
Determines the current source line number
*
_ _MEMORY_MODEL_ _
Identifies the memory model in use
NDEBUG
Determines whether asserts shall be included or not in 
the built application
_Pragma()
Can be used in preprocessor defines and has the 
equivalent effect as the pragma directive
_ _PRETTY_FUNCTION_ _
Expands into a string with the function name, including 
parameter types and return type, as context
_ _STDC_ _
Identifies ISO/ANSI Standard C
*
_ _STDC_VERSION_ _
Identifies the version of ISO/ANSI Standard C in use
*
_ _TID_ _
Identifies the target processor of the IAR compiler in use
_ _TIME_ _
Determines the time of compilation
*
_ _VER_ _
Identifies the version number of the IAR compiler in use
_ _VERSION_1_CALLS__
Identifies the calling convention in use
Table 70: Predefined symbols summary