[coldfire-gnu-discuss] Data & SRAM
Nathan Sidwell
nathan at codesourcery.com
Wed Mar 7 18:23:43 UTC 2007
Eric BENARD wrote:
> Hi,
>
> after putting some code in SRAM, I still don't manage to get enough
> speed improvement.
> I would like to know if there is an easy way to put data & stack of one
> application in SRAM.
> I've tried several options in the linker configuration file but I still
> don't manage to get the app to execute properly.
The trick here is going to be to convince the uclinux loader to allocate the
data segment to the SRAM. That's going to involve kernel hackery.
It might be possible to place the stack into SRAM by judicous use of an assembly
wrapper that moves SP.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list