CompuLab SBC-X270 Manual de usuario Pagina 146

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 226
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 145
SCIOPTA - Real-Time Kernel
15-10 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
15 Building SCIOPTA Systems
15.7 Linker Scripts
15.7.1 Introduction
A linker script is controlling the link in the build process. The linker script is written in a specific linker command
language. The linker script and linker command language are compiler specific.
The linker script describes how the defined memory sections in
the link input files are mapped into the output file
which will be loaded in the target system. Therefore the linker script controls the memory layout in the output file.
SCIOPTA uses the linker scripts to define and map SCIOPTA modules into the global memory map.
15.7.2 GCC Linker Scripts
You can find examples of linker scripts in the SCIOPTA examples and getting started projects. In these examples
there is usually a main linker script which includes a second linker script. The main linker scripts are board depend-
ent.
<board_name>.ld Board specific linker script for
GNU GCC.
File location: <install_folder>\sciopta\<v
ersion>\bsp\<arch>\<cpu>\<board>\include\
Usually the main linker scripts includes another standard linker script:
module.ld Mod
ule linker script for GNU GCC.
File location: <install_folder>\sciopta\<version>\bsp\<arch>\include\
Study these linker script files to get full information how to locate a SCIOPTA system in the embedded memory
spa
ce.
15.7.2.1 Memory Regions
The main linker script contains the allocation of all available memory and defi
nition of the memory regions includ-
ing the regions for all modules. Sections are assigned to SCIO
PTA specific memory regions. The region name has
no meaning outside of the linker script. Region names are stored in a separate name space, and will not conflict
with symbol names, file names, or section names. Each memory region must have a distinct name.
The following regions are typically defined by the user:
rom destination for read-only data
sram internal SRAM
system_mod Memory region for the system module
<module_name>_mod Memory region for other modules (with name: <module_name>).
Vista de pagina 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 225 226

Comentarios a estos manuales

Sin comentarios