This is the mail archive of the ecos-discuss@sources.redhat.com 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: mixed-assembly-dump


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


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