Article View: gnu.gcc.help
Article #42906Re: generating an assembly listing with source
From: Lars Hecking
Date: Mon, 16 Oct 1995 00:00
Date: Mon, 16 Oct 1995 00:00
23 lines
1422 bytes
1422 bytes
In article <199510092158.OAA18928@helium.eng.ascend.com> tlynch@eng.ascend.COM (Tim Lynch) writes:
Hi,
I just started a new job where we use the Cygnus GNU tools for development.
We use gcc960 and gld960 to generate loads for our Intel i960-based hardware
platform, which currently has no source level debugging.
At my last place, we used the Watcom compiler. It had a useful tool
(wdisasm) that would disassemble an object file and, if the .c file was also
specified, generate an assembly listing with address offsets and the
original C statements interspersed to show where the assembly came from.
Very useful for debugging.
Nobody here knows how to do this with GNU, and I haven't seen anything in
the docs. Any help would be much appreciated.
If you have the GNU assembler,
gcc -c -g -Wa,ahl {file}.c > {file}.lst
works.
Technical Details
Message-ID:
<i7ka65cvtw.fsf@nenagh.nmrc.ucc.ie>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<199510092158.OAA18928@helium.eng.ascend.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4970cff450672e1d,start X-Google-Attributes: gid11318c,public From: lhecking@nmrc.ucc.ie (Lars Hecking) Subject: Re: generating an assembly listing with source Date: 1995/10/16 Message-ID: <i7ka65cvtw.fsf@nenagh.nmrc.ucc.ie> X-Deja-AN: 117645815 distribution: gnu sender: lhecking@nenagh.nmrc.ucc.ie references: <199510092158.OAA18928@helium.eng.ascend.com> to: tlynch@eng.ascend.COM (Tim Lynch) organization: GNUs Not Usenet newsgroups: gnu.gcc.help