This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Separate the heap from bss section
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] Separate the heap from bss section
- From: Ho Shui Choy Stanley PS03B NCS <scho at ncs dot com dot sg>
- Date: Mon, 14 May 2001 09:22:03 +0800
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
I have found out that when the heap section is defined in the same memory
region with bss section, then only it will use the specify heap. When the
bss section and the heap is defined in different memory region, the heap
count will be 0. Why is this so? Is it a known bug?
Stanley
-----Original Message-----
From: Jonathan Larmour [mailto:jlarmour@redhat.com]
Sent: Friday, May 11, 2001 13:50
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:
>
> 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
>
[snip]
> #define CYGMEM_HEAP_COUNT 0
[snip]
> Should the heap count be 1 instead of 0?
Yes, but changing it by hand won't do the right thing. Try deleting the
heaps.cxx file in the services/memalloc/common/current build directory. The
problem you are seeing may be associated with this FIXME in the CDL:
# FIXME this should have a dependency on mlt_headers, but CDL
doesn't
# permit custom build rules depending on phony targets
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