This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
RE: dinamic memorry allocation
- To: Marco Monguzzi <marco at sitek dot it>
- Subject: RE: [ECOS] dinamic memorry allocation
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Sat, 24 Jun 2000 06:37:56 -0600 (MDT)
- Cc: ecos-discuss at sourceware dot cygnus dot com
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.