This is the mail archive of the ecos-discuss@sourceware.cygnus.com 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]

RE: dinamic memory allocation


>
> On 24-Jun-00 Marco Monguzzi wrote:
> > Hello all.
> >
> > Dealing with dynamic memory allocation, I noticed that the
> space to support
> > the LIBC
> > calls like malloc, calloc etc, is allocated in the .data
> segment. This means
> > the space
> > required to store the system/apps in EPROM is proportional to
> > CYGPKG_NET_MEM_USAGE.
> > Is it correct or there is a way to avoid that?
> >
>
> The memory used for malloc() and friends is in BSS, not DATA.  This is not
> held in ROM, but only exists in RAM when the application is running.

Gary, thanks for commenting.
In my previous post, I wrote the wrong name for the macro. I am aware of the
BSS use for the net package dynamic allocation.
I meant CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE. Is it the same?
In this case, I guess I have something wrong somewhere in my
configuration....

TIA,
Marco



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