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: Fri, 11 May 2001 13:38:49 +0800
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
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