Partitioning Memory Into Logical Blocks - Texas Instruments TMS320C54x User Manual

Digital signal processors
Table of Contents

Advertisement

Sections
Several assembler directives allow you to associate various portions of code
and data with the appropriate sections. The assembler builds these sections
during the assembly process, creating an object file organized as shown in
Figure 2–1.
One of the linker's functions is to relocate sections into the target memory map;
this function is called allocation . Because most systems contain several types
of memory, using sections can help you use target memory more efficiently.
All sections are independently relocatable; you can place any section into any
allocated block of target memory. For example, you can define a section that
contains an initialization routine and then allocate the routine into a portion of
the memory map that contains ROM.
Figure 2–1 shows the relationship between sections in an object file and a
hypothetical target memory.
Figure 2–1. Partitioning Memory Into Logical Blocks
Object File
Target Memory
.bss
RAM
.data
EEPROM
.text
ROM
Introduction to Common Object File Format
2-3

Advertisement

Table of Contents
loading

Table of Contents