Target options
The Target options specify target-specific features for the IAR C/C++ Compiler and Assembler.

Device
The device your are using. The choice of device will automatically determine the default linker configuration file and C-SPY® device description file. For information about how to override the default files, see the C-SPY Debugging documentation.
Floating-point
The compiler represents floating-point values by 32- and 64-bit numbers in standard IEEE 754 format. Size of type 'double' selects the size of the type double. Choose between:
For more information about the floating-point format, see Basic data types—floating-point types.
Subnormal numbers
Controls how the compiler shall treat 32-bit floating-point subnormal numbers. (By default, subnormal numbers are only supported for 64-bit floating-point numbers.) Choose between:
For more information about how the compiler handles subnormal numbers, see Representation of special floating-point numbers.
Position-independence
Makes the compiler generate code that uses position-independent references to address code and data. Choose between:
- Code and read-only data
Generates position-independent code and read-only data.
- Read-write data
Generates position-independent read-write data.
Note
Pointer constants cannot be initialized with the address of a movable object. However, writable variables can be initialized to constant addresses at runtime.
Byte order
Use the options in the Byte order area to choose the byte order for data (code is always little-endian). Choose between:
Int
The compiler uses 16 or 32 bits to represent the int data type. Size of type 'int' selects the size of the type int. Choose between:
- 16 bits
The size of the data type
intis 16 bits.
- 32 bits
The size of the data type
intis 32 bits.
For more details about the integer types, see Basic data types—integer types.
Data model
Selects the data model for your project:
Data model | Default memory attribute | Placement of data |
|---|---|---|
| Low 32 Kbytes or high 32 Kbytes | |
| Low 8 Mbytes or high 8 Mbytes | |
| The entire 4 Gbytes of memory |
For more information about the data models, see Data models.