Forums

Allocating .const to Program Memory

Started by Mario Imaguire February 26, 2008
Hi,

I read in TMS320C54x Optimizing C Compiler SPRU103C, page 6-4, "6.1.3
Allocating .const to Program Memory".
Its possible also to DSP/BIOS users ? How can I modify the boot.asm, rts.src
?

Thanks
Mario

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Mario-

> I read in TMS320C54x Optimizing C Compiler SPRU103C, page 6-4, "6.1.3
> Allocating .const to Program Memory".
> Its possible also to DSP/BIOS users ?

If DSP/BIOS declares / uses .const data, then it would be treated as with any other .const data: a) C code
initialization of static memory areas would occur before any DSP/BIOS C code runs, and b) this would be either
run-time initialization (done by low-level .asm DSP code at boot-time), or load-time initialization (done by an
external host processor as it downloaded code for the first time).

> How can I modify the boot.asm, rts.src

Can you clarify to what boot.asm you refer? Yours? TI's? In what context?

As for rts.src, it seems you are referring to C5400 rts.lib source code. You can modify the .src file that comes with
CCS as needed by your application and rebuild into a customized library; e.g. my_rts5400.lib. Look in the "TMS320C54x
Assembly Language Tools Users Guide":

http://focus.ti.com/lit/ug/spru102f/spru102f.pdf

for references to "library-build utility". This program used to be called "dspmk" several years ago, but I'm not sure
what name TI is using now.

-Jeff

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467