This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dynamic loading


On Fri, Apr 14, 2006 at 01:12:00AM +0200, Martin Laabs wrote:
> Hi,
> 
> 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.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]