Execute a library (.a) from CCM SRAM
IAR Embedded Workbench® allows the execution of a library or a library module from CCM SRAM. The required steps are listed below:
- Define the memory address area corresponding to the CCM SRAM by specifying the start and end addresses.
Figure 8. CCM SRAM area definition 
- Update the linker to copy at startup the library or the library module in CCM SRAM using the '
initialize by copy' directive.Figure 9. IAR Embedded Workbench® section initialization 
- Indicate to the linker that the library must be placed in CCM SRAM.
Figure 10. IAR Embedded Workbench® library placement 
To execute a library module from CCM SRAM, follow steps 1, 2 and 3 using the library module name.
The example in the figure below shows how to place arm_abs_f32.o (a module of iar_cortexM4l_math.a library) in CCM SRAM.






