[Q] assembler code with the source lines

N8TM@aol.com N8TM@aol.com
Sat Feb 12 13:35:00 GMT 2000


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


More information about the Gcc mailing list