This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: mixed-assembly-dump
- From: Grant Edwards <grante at visi dot com>
- To: jasmine kohli <jasubang at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 23 Jul 2004 12:19:26 -0500
- Subject: Re: [ECOS]mixed-assembly-dump
- References: <20040723150922.11165.qmail@web90104.mail.scd.yahoo.com>
On Fri, Jul 23, 2004 at 08:09:22AM -0700, jasmine kohli wrote:
> i want to generate a list file for my PPC target that not only
> generates assembly but also the corresponding C line of code.
> does anyone know how to do it.
Here's what I use:
%.o: %.c
$(GCC) $(CFLAGS) $(INCLUDES) -c $< -o $@ -Wa,-ahld=$(@F).l
To find out exactly what's going on:
$ info as
$ info gcc
--
Grant Edwards
grante@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