Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C54x | 'farcall' background needed

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

'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


______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(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 )