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...
Post a new Thread
Is this thread worth a thumbs up?
'farcall' background needed - bsd_mike - Jul 6 22:04:00 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
______________________________
New Code Sharing Section now Live on DSPRelated.com.
Learn about the Reward
Program for Contributors here. 
(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )
Re: 'farcall' background needed - Jeff Brower - Jul 14 14:41:00 2005
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
______________________________
New Code Sharing Section now Live on DSPRelated.com.
Learn about the Reward
Program for Contributors here. 
(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )