Atmel CAVR-4 사용자 설명서

다운로드
페이지 323
CAVR-4
6
Basic settings for project configuration
AVR® IAR C/C++ Compiler
Reference Guide
Both options set up default behavior—implicit assumptions—but note that the 
--cpu
 
option is more precise because it contains more information about the intended target 
than the more generic 
-v
 option. The 
--cpu
 option knows, for example, how much flash 
memory is available in the given target and allows the compiler to optimize accesses to 
code memory in a way that the 
-v
The 
--cpu=derivative
 option implicitly sets up all internal compiler settings needed 
to generate code for the processor variant you are using. The following options are 
implicitly controlled when you use the 
--cpu
 option: 
--eecr_address
--eeprom_size
--enhanced_core
--spmcr_address
-v
 and 
--64k_flash
.
Because these options are automatically set when you use the 
--cpu
 option, you cannot 
set them explicitly. For information about implicit assumptions when using the 
-v
 
option, see Summary of processor configuration, page 8. To read more about the 
generated code, see -v, page 197.
See the AVR® IAR Embedded Workbench™ IDE User Guide for information about 
setting project options in IAR Embedded Workbench.
Use the 
--cpu
 or 
-v
 option to specify the AVR derivative; see the chapter Compiler 
options for syntax information. 
Mapping of processor options --cpu and -v
The following table shows the mapping of processor options and which AVR 
microcontrollers they support:
Processor variant
Generic processor option
Supported AVR derivative
--cpu=1200
-v0
AT90S1200
--cpu=2313
-v0
AT90S2313
--cpu=2323
-v0
AT90S2323
--cpu=2333
-v0
AT90S2333
--cpu=2343
-v0
AT90S2343
--cpu=4414
-v1
AT90S4414 
--cpu=4433
-v0
AT90S4433
--cpu=4434
-v1
AT90S4434 
--cpu=8515
-v1
AT90S8515
--cpu=8534
-v1
AT90S8534
--cpu=8535
-v1
AT90S8535
Table 2: Mapping of processor options