DSPRelated.com
Forums

linker sections for RTS/

Started by Sri January 5, 2006
Hi,
 
I want to know that how can I create user defined sections( to link at a particular location in memory) for the different RTS and CSL library routines code used in my code. I know that by default all the RTS and CSL code goes into the .text section , I can modify the linking destination for whole .text section.
But what is the procedure, if I want to move some selective CSL/RTS routines(say EDMA and McBSP) to a user defined section and and put all others in their usual .text section.
 


You could place RTS sections off-chip by following something similar to the following piece of code (part of Linker Command File):
 

/*

*/

/* 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

 
Check out section 9-9 of programers guide(spru198.pdf) for more details.
 
--Bhooshan


 
On 1/5/06, Sri <l...@gmail.com> wrote:
Hi,
 
I want to know that how can I create user defined sections( to link at a particular location in memory) for the different RTS and CSL library routines code used in my code. I know that by default all the RTS and CSL code goes into the .text section , I can modify the linking destination for whole .text section.
But what is the procedure, if I want to move some selective CSL/RTS routines(say EDMA and McBSP) to a user defined section and and put all others in their usual .text section.
 



 




--
-------------------------------
"I've missed more than 9000 shots in my career.
I've lost almost 300 games. 26 times I've been trusted to take the game winning shot and missed.
I've failed over and over again in my life.
And that is why I succeed."
        -- Michael Jordan
--------------------------------