This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: merge C with assembler
- To: help-gcc at gnu dot org
- Subject: Re: merge C with assembler
- From: dickg at develcon dot com (Dick Ginther)
- Date: 12 Nov 1999 11:25:17 -0600
- Newsgroups: gnu.gcc.help
- Organization: Develcon Electronics Ltd., Saskatoon, SK, Canada
- References: <809gtp$n7v@sirius.develcon.com> <lehotsky-0911991651090001@192.168.1.254>
- Xref: wodc7nx0 gnu.gcc.help:1801
Hi,
I have been able to get what I was looking for...
In article <lehotsky-0911991651090001@192.168.1.254>,
Alan Lehotsky <lehotsky@tiac.net> wrote:
> The gnu assembler has support for this if you're using STABS
> debug information.
>
> In fact, you can make objdump print the C code too if you compile
> and link with debug information.
Thanks to those who helped, I changed my makefile to use the
following:
$(CC) $(CCFLAGS) $(OPTS) -g -Wa,-a=$(*).lst $(<)
The resulting output .lst file is then passed through a sed
script to strip out all of the .stab lines that clutter the
view.
--
Dick Ginther E-mail: dick.ginther@develcon.com
Develcon Electronics Ltd. Web: http://www.develcon.com
856 - 51st Street East Phone: 306 931-1339
Saskatoon, SK Canada S7K 5C7 Fax: 306 931-1352