| Non-Confidential | ARM DUI0474M | |||
| ||||
| Home > Scatter-loading Features > Placement of ARM C and C++ library code > Example of placing ARM C library code | ||||
You can place C library code using a scatter file.
The following example shows how to place C library code:
LR1 0x0
{
ROM1 0
{
* (InRoot$$Sections)
* (+RO)
}
ROM2 0x1000
{
*armlib/c_* (+RO) ; all ARM-supplied C library functions
}
ROM3 0x2000
{
*armlib/h_* (+RO) ; just the ARM-supplied __ARM_*
; redistributable library functions
}
RAM1 0x3000
{
*armlib* (+RO) ; all other ARM-supplied library code
; for example, floating-point libraries
}
RAM2 0x4000
{
* (+RW, +ZI)
}
}
The name armlib indicates the ARM C library files that are located in the directory
.install_directory\lib\armlib