This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
RE: dinamic memory allocation
- TO: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: RE: [ECOS] dinamic memory allocation
- From: "Marco Monguzzi" <marco at sitek dot it>
- Date: Sun, 25 Jun 2000 20:44:12 +0200
>
> 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