[ECOS] dynamic loading
Fri Apr 14 20:57:00 GMT 2006
On Fri, Apr 14, 2006 at 01:12:00AM +0200, Martin Laabs wrote:
> I searched a bit but I'm still not sure whether ecos supports
> dynamic loading or not.
> In fact a rtos do not really need a dynamic loader. But imagine the
> following: Your CPU has some amount of internal SRAM and you expand
> this with slow external memory. (i.e. slow SRAM or flash)
> Now it could be advantageous to copy some code out of the slow
> memory into the fast internal SRAM to execute it there.
The objloader package will do this. At the moment it uses malloc to
allocate the space for the loaded symbols. But it has been designed so
that you can provide your own functions to allocate memory. So you
would just need to provide cyg_ldr_malloc() and cyg_ldr_free() which
allocate SRAM memory instead of heap.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss