This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: PowerPC linking error messages


On Tue, 5 Feb 2002 at 16:44 -0000, David Korn <dkorn@pixelpower.com> wrote:

> >-----Original Message-----
> >From: eddy@fericom.net [mailto:eddy@fericom.net]
> >Sent: 04 February 2002 19:29
>
>
>   Hi again Eddy!
>
>
> >- I use the -S option with GCC to learn about the confusing guts of RISC
> >  assembler. Is there an option to GCC to add the C lines that produced the
> >  assembler as comments? I only found -fverbose-asm but that didn't do.
>
>   Yes, the compiler doesn't seem to have any way to do this.  The best
> option is to build your code using -g and -O0, then use objdump like:
>
>     powerpc-eabi-objdump -SD <.o file name>
>
> to get a listing back.

I'm basically a lurker using the old mc68k cross tools, but
I add the following flags to the gcc compile options to generate a
mixed source and assembly listing - does this help?

   -Wa,-adhln,-L -g -c


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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