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: Re: save heap contents


On Wed, Nov 30, 2005 at 08:49:41AM -0000, R S wrote:
> To add to my previous question, one way of doing it is using sbrk(0) to locate
> current heap pointer at any time and use it to copy the heap contents ,
> however as memory is sbrked only once in eCos (dlmalloc impl), this is not
> possible. So I am looking at alternate ways to accomplish the heap copy(that
> is currently in use).

You are looking at synth. Only synth uses sbrk() since it is hosted on
top of virtual memory, not real memory. For real targets this will not
work.

        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]