This is the mail archive of the gcc-help@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: merge C with assembler


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


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