This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Determine start-end of memory regions at runtime
- From: "Ruchika Singh" <rusingh at ecs dot umass dot edu>
- To: "Fabian Scheler" <fabian dot scheler at gmail dot com>, "Ruchika Singh" <rusingh at ecs dot umass dot edu>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 28 Sep 2005 00:55:44 -0000
- Subject: Re: [ECOS] Determine start-end of memory regions at runtime
- References: <twig.1127848241.10106@ecs.umass.edu>, <twig.1127848241.10106@ecs.umass.edu>
I do see __bss_start and __bss_end defined in vectors.S, however I am not sure
how I can find start-end for global/shared data. Also __heap1 is the start of
heap, but is there a way to determine where it ends at any time at runtime??
Will appreciate any inputs.
Fabian Scheler <fabian.scheler@gmail.com> said:
> Hi,
>
> there are defined several constants within the linker script like
> __bss_start or __bss_end, or something like that. Take a look into the
> linker script, you should be able to find these constants easily.
>
> Ciao, Fabian
>
> 2005/9/27, Ruchika Singh <rusingh@ecs.umass.edu>:
> >
> > Hi All:
> >
> > How can I determine at runtime the start/end address of memory sections,
> > rodata,.bss etc.
> >
> > Thanks,
> > -R.
> >
> > --
> > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
>
--
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss