From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8516 invoked by alias); 25 Feb 2008 16:02:40 -0000 Received: (qmail 8503 invoked by uid 22791); 25 Feb 2008 16:02:38 -0000 X-Spam-Check-By: sourceware.org Received: from gv-out-0910.google.com (HELO gv-out-0910.google.com) (216.239.58.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Feb 2008 16:01:37 +0000 Received: by gv-out-0910.google.com with SMTP id n40so572661gve.39 for ; Mon, 25 Feb 2008 08:01:33 -0800 (PST) Received: by 10.142.171.6 with SMTP id t6mr2415755wfe.220.1203955292278; Mon, 25 Feb 2008 08:01:32 -0800 (PST) Received: by 10.143.2.7 with HTTP; Mon, 25 Feb 2008 08:01:32 -0800 (PST) Message-ID: Date: Mon, 25 Feb 2008 16:02:00 -0000 From: "Tom Deconinck" To: ecos-discuss@sourceware.org, "Andrew Lunn" In-Reply-To: <20080225151754.GA20912@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080225151754.GA20912@lunn.ch> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Stack question X-SW-Source: 2008-02/txt/msg00172.txt.bz2 On Mon, Feb 25, 2008 at 4:17 PM, Andrew Lunn 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