This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: source listing?


Bill Su <ycsu@zyxel.com.tw> writes:
>   For debugging reason, we need the source listing within
> asm output.  I can't find the option in the manual.  Is
> there any option for that?  I try 'addr2line', but it doesn't
> work on my port. So I need the listing to find out the
> address to source line mapping.  Thanks.

How did you miss it in the gas documentation? That's the first that 
shows up if I do `info as Invoking'!

  $ gcc -c -g -O -Wa,-alh,-L file.c

If you want to listing to go a file, say file.lst, instead:

  $ gcc -c -g -O -Wa,-alh=file.lst,-L file.c

Regards,
Mumit


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


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