This is the mail archive of the
mailing list for the eCos project.
Re: bss and heap
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Tom Coremans <tom dot coremans at acunia dot com>
- Cc: eCos users <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 22 Feb 2002 17:53:41 +0000
- Subject: Re: [ECOS] bss and heap
- Organization: Red Hat UK Ltd.
- References: <3C762FD4.F54F23D2@acunia.com>
Tom Coremans wrote:
> here is a section out of the a header file for the memory layout for the
> ipaq pocket PC target.
> SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
> CYG_LABEL_DEFN(__heap1) = ALIGN (0x1000);
> It defines a heap and a bss of about 4k.
Nope, it's a BSS aligned to 4 bytes, and heap aligned to 4K. :-)
> What is the exact difference between the two?
> The heap is used for all the memory allocation (malloc etc.) so for what
> is the bss used in ecos?
Uninitialized data (which gets set to 0). For static and global variables
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss