DSPRelated.com
Forums

how to put a library into a specified memory section

Started by Raghunath Mallya May 11, 2005
HI All:

anyone of you know how to put a entire library into a
specified memory section especially into external
memory....can i get some tips in this reagards..

With best wishes

Raghu


Raghunath--
The section 9.2.4 of the programmers guide(spru198.pdf) describes how
to place the RTS(Run Time Support Library) off-chip(external memory,
if you will) and the trade off's involved in doing so. I would assume
the technique afore mentioned should be applicable to any library,
including user defined ones. I Have listed the example linker command
file from the manual below for your reference:

--Bhooshan

/*********************************************************************/
/* farlnk.cmd Link command file which puts RTS off-chip */
/*********************************************************************/
c
heap 0x2000
stack 0x4000
/* Memory Map 1 the default */
MEMORY
{
PMEM: o = 00000000h l = 00010000h
EXT0: o = 00400000h l = 01000000h
EXT1: o = 01400000h l = 00400000h
EXT2: o = 02000000h l = 01000000h
EXT3: o = 03000000h l = 01000000h
BMEM: o = 80000000h l = 00010000h
}
SECTIONS
{
/**/
/* Sections defined only in RTS. */
/**/
.stack > BMEM
.sysmem > BMEM
.cio > EXT0
/**/
/* Sections of user code and data */
/**/
.text > PMEM
.bss > BMEM
.const > BMEM
.data > BMEM
.switch > BMEM
.far > EXT2
/**/
/* All of .cinit, including from RTS, must be collected together */
/* in one step. */
/**/
.cinit > BMEM
How to Save On-Chip Memory by Placing RTS Off-Chip
9-9 Linking Issues
/**/
/* RTS code placed off chip */
/**/
.rtstext { lrts6200.lib(.text) } > EXT0
/**/
/* RTS data undefined sections placed off chip */
/**/
.rtsbss { lrts6200.lib(.bss)
lrts6200.lib(.far) } > EXT0
/**/
/* RTS data defined sections placed off chip */
/**/
.rtsdata { lrts6200.lib(.const)
lrts6200.lib(.switch) } > EXT0
} On 5/11/05, Raghunath Mallya <raghu_mallya@ragh...> wrote:
> HI All:
>
> anyone of you know how to put a entire library into a
> specified memory section especially into external
> memory....can i get some tips in this reagards..
>
> With best wishes
>
> Raghu
>