[uClinux-dev] m68k : gcc-4.1-30 & SRAM

Eric BENARD ebenard at free.fr
Fri Jan 19 02:49:33 EST 2007


Hi Greg,

Greg Ungerer a écrit :
> Eric BENARD wrote:
>> uClinux doesn't use the internal SRAM. In my case I already manage to
>> use 4kB for data with malloc/free functions reworked by Gerg Ungerer in
>> it's mp3player. For code, there will be only one application using it so
>> the management of thje SRAM should be pretty simple ... once I manage to
>> link code into it !
> 
> The code I modified in mp3play only put run time data in the SRAM,
> no code. So there was no linker issues.
> 
yes and it's working perfectly and already improve the speed of the
application just by using 4kB of SRAM for selected data. The execution
time of the application is reduced by 22 percents just using your
malloc/free like functions.

> The code I changed was very much hardware and platform specific.
> It just used direct pointers into the SRAM region (the interface
> was like malloc, but just for the SRAM region).
> 
Yes, it's vcery simple and efficient, no need for a more complex thing
when using it in only one application.

Many Thanks
Eric


More information about the uClinux-dev mailing list