This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Q] assembler code with the source lines
- To: youngsc at cs dot umn dot edu, gcc at gcc dot gnu dot org
- Subject: Re: [Q] assembler code with the source lines
- From: N8TM at aol dot com
- Date: Sat, 12 Feb 2000 16:34:21 EST
In a message dated 2/12/2000 1:07:03 PM Pacific Standard Time,
youngsc@cs.umn.edu writes:
> option(flag) to obtain assembler codes with the source lines?
2 possibilities, the extent to which each works depending on your target:
I believe both require the -g option, and work only with gnu as. There was a
linux perl script offered recently, which does some of this stuff in color.
1. pass the option to as: -Wa,-al
2. run objdump on the .o or the final executable:
objdump -S whatever.o
Both as and objdump have --help options which should be useful.
Tim
tprince@computer.org