This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Assembly & C crossview in eCos & ARM
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 9 Nov 2006 03:27:31 +0000 (UTC)
- Subject: [ECOS] Re: Assembly & C crossview in eCos & ARM
- References: <504414.41604.qm@web31704.mail.mud.yahoo.com>
On 2006-11-08, Wei Chen <chenwei_us@yahoo.com> wrote:
> I am trying to find a tool that can show mixed view of
> Source C code and Corresponding Assembly instruction
> at the same time.
I find that objdump --source mostly works, but I usually just
generate mixed C/assembly listings when compiling by doing
something like this in my Makefile:
%.o: %.c
$(GCC) $(CFLAGS) $(INCLUDES) -c $< -o $@ -Wa,-ahld=$(@F).l
--
Grant Edwards grante Yow! Yow! We're going to
at a new disco!
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss