- IAR Embedded Workbench for Arm 9.70.x
- IAR C/C++ Development
- Linking your application
- Linking considerations
- Choosing a linker configuration file
Choosing a linker configuration file
The config directory contains ready-made templates for linker configuration files (*.icf) for all supported cores.
The files contain the information required by ILINK. The only change, if any, you will normally have to make to the supplied configuration file is to customize the start and end addresses of each region so they fit the target system memory map. If, for example, your application uses additional external RAM, you must also add details about the external RAM memory area.
For some devices, device-specific configuration files are automatically selected.
To edit a linker configuration file, use the editor in the IDE, or any other suitable editor. Alternatively, choose Project>Options>Linker and click the Edit button on the Config page to open the dedicated linker configuration file editor.
Do not change the original template file. We recommend that you make a copy in the working directory, and modify the copy instead. If you are using the linker configuration file editor in the IDE, the IDE will make a copy for you.
Each project in the IDE should have a reference to one, and only one, linker configuration file. This file can be edited, but for the majority of all projects it is sufficient to configure the vital parameters in Project>Options>Linker>Config.