- IAR Embedded Workbench for Arm 9.70.x
- IAR C/C++ Development
- Developing embedded applications
- Basic project configuration
- 32-bit mode processor configuration
32-bit mode processor configuration
To make the compiler generate optimum code, you should configure it for the Arm core you are using.
Processor variant
The IAR C/C++ Compiler for Arm supports most 32-bit Arm cores and devices. All supported cores support Thumb instructions and 64-bit multiply instructions. The object code that the compiler generates is not always binary compatible between the cores, therefore it is crucial to specify a processor option to the compiler. The default core is Cortex-M3.
Caution
VFP and floating-point arithmetic
If you are using an Arm core that contains a Vector Floating Point (VFP) coprocessor, you can use the ‑‑fpu option to generate code that carries out floating-point operations utilizing the coprocessor, instead of using the software floating-point library routines.
Caution
See General options for information about setting the FPU option in the IDE.
Danger
Use the ‑‑fpu option to specify the Arm core. For syntax information, see ‑‑fpu.
Byte order
The compiler supports the big-endian and little-endian byte order. All user and library modules in your application must use the same byte order.
Caution
See 32-bit for information about setting the Byte order option in the IDE.
Danger
Use the ‑‑endian option to specify the byte order for your project. For syntax information, see ‑‑endian.