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 memorry 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.

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