DSPRelated.com
Forums

'farcall' background needed

Started by bsd_mike July 6, 2005

Finally starting to run out of memory in my current build
enviorment and would like to start using some of the upper
memory on the 5416.

Can anybody give me any hints to get started?

How do I declare code to be linked into that area?
How do I functions linked in that area?
Any tips would really be appreciated.

Thanks,
-Mike


Mike-

> Finally starting to run out of memory in my current build
> enviorment and would like to start using some of the upper
> memory on the 5416.
>
> Can anybody give me any hints to get started?
>
> How do I declare code to be linked into that area?
> How do I functions linked in that area?
> Any tips would really be appreciated.

Attached is a file called 'far_mode.mac' that I use for C54xx asm. lang programming.
The idea is that by toggling an assembler directive, you can build the same code
either in near or far modes without making any source changes.

This should give u some idea of stack alignment issues involved with far mode. Note
especially the "adj_stack" macro, which assumes AR1 is being used to access C calling
parameters.

-Jeff