Atmel CAVR-4 ユーザーズマニュアル

ページ / 323
CAVR-4
230
Predefined symbols
AVR® IAR C/C++ Compiler
Reference Guide
_ _DATE_ _
Use this symbol to identify when the file was compiled. This symbol expands to the date 
of compilation, which is returned in the form 
"Mmm
 
dd
 
yyyy"
, for example 
"Jan 30
 
2002"
.
_ _derivative_ _
Use this symbol to identify the used processor variant. 
Corresponds to the processor variant that you have specified with the 
--cpu
 compiler 
option. 
derivative
 corresponds exactly to the derivative name in Table 2, Mapping of 
processor options on page 6, except for FpSLic, which uses the predefined symbol 
_ _AT94Kxx_ _
.
For example, the symbol is 
_ _AT90S2313_ _
 when the 
--cpu=2313
 option is used, and 
_ _ATmega163_ _
 when 
--cpu=m163
 is used.
_ _embedded_cplusplus
This predefined symbol expands to the number 1 when the compiler runs in any of the 
C++ modes. When the compiler runs in ISO/ANSI C mode, the symbol is undefined. 
_ _FILE_ _
Use this symbol to identify which file is currently being compiled. This symbol expands 
to the name of that file.
_ _func_ _, _ _FUNCTION_ _
Use one of these symbols inside a function body to make it expand into a string with the 
function name as context. This is useful for assertions and other trace utilities. These 
symbols require that language extensions are enabled, see -e, page 179.
_ _HAS_EEPROM_ _
This symbol determines whether there is internal EEPROM available or not.
When this symbol is defined, there is internal EEPROM available. When this symbol is 
not defined, there is no internal EEPROM available.
_ _HAS_EIND_ _
This symbol determines whether the instruction 
EIND
 is available or not.
When this symbol is defined, the instruction 
EIND
 is available. When this symbol is not 
defined, the 
EIND
 instruction is not available.