memory allocation are three types:

a.   stack allocation.
b.   dynamic heap-based - using api like malloc()....and this happened
in the heap area....depending on ELF loading and
architecture-specific.
c.   static memory - this is purely embedded inside the ELF file, so
during loading it just got mapped into memory.   No allocation is
needed, but it will follow the ELF file-format.   Eg, if u create
several sections inside the ELF file, each of these section will get a
page for itself in the loaded memory.

On Thu, Oct 23, 2008 at 8:41 AM, Dong Phuong <[EMAIL PROTECTED]> wrote:
>
> I'm porting for a microcontroller with segmented
> memory. And I want to see how memory are allocated for
> variables with different directives such as NEAR, FAR
> ..... So where can I find it in GCC source code ?
>
>
>
>



-- 
Regards,
Peter Teoh

Reply via email to