This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: [Q] assembler code with the source lines


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

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