Forums

Place functions in external memory?

Started by Andrew Xiang September 22, 2003
Does anyone have an example linker cmd file on how to place function
selectively in the
internal memory and external memory.

I have function in both C and asm, some function needs to be in the internal
mem, and some can be placed externally.

Please give me an example linker command file to covers both asm and C
functions.

thanks

Andrew



Hi Andrew,
You can selectively place C functions in internal
or external memory by using #pragma directives. For
example, if you want to put the function 'func' in a
section named '.sec' which is allocated in either
internal or external memory in a linker command file,
you can use the following directive:

#pragma CODE_SECTION(func,".sec")
Put this directive on top of the function definition.
You can use the linker command file to put the
section, ".sec", in the memory you want-either
internal or external-just like you allocate other
standard sections like .text or .bss etc. For assembly
functions you can use the ".sect" assembler directive
to place your function.
.sect ".sec"
More information on the assembler directives is also
available in the standard documentation. Hope this
answers your query. Bye,

Regards,
Ravi Kiran --- Andrew Xiang <> wrote: >
Does anyone have an example linker cmd file on how
> to place function
> selectively in the
> internal memory and external memory.
>
> I have function in both C and asm, some function
> needs to be in the internal
> mem, and some can be placed externally.
>
> Please give me an example linker command file to
> covers both asm and C
> functions.
>
> thanks
>
> Andrew >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com



Hello!

I make a custom board based on 5409 DSP. This board is connect with
another through the HPI port (mode 8bits). This another board have a
ColdFire Microcontroller (Motorola) . I would save my DSP programs in the
ColdFire board and Boot through the HPI port. I read de "TMS320VC5409
Bootloader Technical reference" but I not understand how I can load de
.out file into de DSP.
Please some one to fact this?

Thank you!

::Narc Palomeras Rovira::