This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stack question


On Mon, Feb 25, 2008 at 4:17 PM, Andrew Lunn <andrew@lunn.ch> wrote:
> On Mon, Feb 25, 2008 at 03:41:05PM +0100, Tom Deconinck wrote:
>  > Hi,
>  >
>  > Is there an easy way to know where in memory (exact address) the stack
>  > is located?
>
>  Which stack? There is the interrupt stack and the idle stack, which
>  could be the same. If you don't have your own main() function there is
>  also a system main() which has a stack. Plus all your threads have
>  stacks.
>
>  arm-elf-objdump --syms myprog.elf
>
>  or
>
>  arm-elf-nm myprog.elf
>
>  will show you the symbol table with addresses for all symbols.
>
>      Andrew
>

Thanks.
I was looking for stack of my main function. I don't use multiple
threads, so that's one thing less to worry about.

Tom

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]