This is the mail archive of the ecos-discuss@sources.redhat.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: Separate the heap from bss section


I have done that but it is still not used. I have specify that the heap size
be 128KB and the fall back memory pool size is 64KB. When I use the
mallinfo, it reported that the size was only 64KB.

below is from the generated from the build in pkgconf/heaps.hxx

#ifndef CYGONCE_PKGCONF_HEAPS_HXX
#define CYGONCE_PKGCONF_HEAPS_HXX
/* <pkgconf/heaps.hxx> */

/* This is a generated file - do not edit! */

#define CYGMEM_HEAP_COUNT 0
#include <cyg/memalloc/dlmalloc.hxx>

extern Cyg_Mempool_dlmalloc *cygmem_memalloc_heaps[ 1 ];

#endif
/* EOF <pkgconf/heaps.hxx> */

Should the heap count be 1 instead of 0?

Thanks
Stanley

-----Original Message-----
From: Jonathan Larmour [mailto:jlarmour@redhat.com]
Sent: Friday, May 11, 2001 12:57
To: Ho Shui Choy Stanley PS03B NCS
Cc: Ecos-Discuss (E-mail)
Subject: Re: [ECOS] Separate the heap from bss section


Ho Shui Choy Stanley PS03B NCS wrote:
> 
> In my memory layout,  I did not specify a section for my heap. So when I
> make my application, the heap is automatically appended to the bss
section.
> My bss section is currently residing in external RAM. I like to shift the
> bss section to internal RAM, but the heap section remains in external RAM.
> How do I seprate them?

Create a user defined section in the MLT named "heap1", located wherever
you want. Look at other standard targets for comparison if that helps.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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