Texas Instruments TMS320 User Manual page 186

Dsp/bios v5.40
Hide thumbs Also See for TMS320:
Table of Contents

Advertisement

Memory Management
Example 5-1. Linker Command File (C6000 Platform)
Example 5-2. Linker Command File (C5000 and C28x Platforms)
5-4
You should then create your own linker command file that begins by including
the linker command file created by running the configuration script. For
example, your own linker command file might look like one of those shown in
Example 5-1 or Example 5-2.
/* First include DSP/BIOS generated cmd file. */
-l designcfg.cmd
SECTIONS {
/* place high-performance code in on-device ram */
.fast_text: {
myfastcode.lib*(.text)
myfastcode.lib*(.switch)
} > IPRAM
/* all other user code in off device ram */
.text:
.switch:
.cinit:
.pinit:
/* user data in on-device ram */
.bss:
.far:
}
/* First include DSP/BIOS generated cmd file. */
-l designcfg.cmd
SECTIONS {
/* place high-performance code in on-device ram */
.fast_text: {
myfastcode.lib*(.text)
myfastcode.lib*(.switch)
} > IPROG PAGE 0
/* all other user code in off device ram */
.text:
.switch:
.cinit:
.pinit:
/* user data in on-device ram */
.bss:
.far:
}
{} > SDRAM0
{} > SDRAM0
{} > SDRAM0
{} > SDRAM0
{} > IDRAM
{} > IDRAM
{} > EPROG0 PAGE 0
{} > EPROG0 PAGE 0
{} > EPROG0 PAGE 0
{} > EPROG0 PAGE 0
{} > IDATA PAGE 1
{} > IDATA PAGE 1

Advertisement

Table of Contents
loading

Table of Contents