From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,6373b9200cc9eb65 X-Google-Attributes: gid111c93,public From: Toon Moene Subject: Re: assembly programming on alphas Date: 1998/12/19 Message-ID: <367BCE26.9DF9792B@moene.indiv.nluug.nl>#1/1 X-Deja-AN: 423962981 Content-Transfer-Encoding: 7bit References: <36704B54.55298E9F@xs4all.nl> <36729BEF.36CA000C@frankfurt.netsurf.de> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@koza.nl.net X-Trace: koza.nl.net 914083441 16192 195.109.255.217 (19 Dec 1998 16:04:01 GMT) Organization: Moene Computational Physics, Maartensdijk, The Netherlands Mime-Version: 1.0 NNTP-Posting-Date: 19 Dec 1998 16:04:01 GMT Newsgroups: comp.os.linux.alpha Joachim Wesner wrote: > Bram wrote: > > I've been reading DEC's Assembly Language Programmer's Guide. > > But I have a couple of questions. > > How can I have egcs generate more verbose assembly output? > > The samples in the guide show the C-source as comments in > > the assembly file. > > The output from egcc -S does not give these. > To my knowledge, there is no way to have the assembly output mixed with > the C-source on gcc/egcs. Well, I never got around writing this, but the egcc -g -S [other options] ... command should write the debugging information in the assembler file, and hence - because the debugging info contains the line number - it's possible (writing a small C program that reads both the .s and the .c file) to create a combined file with the assembler code interspersed with the original C code. HTH, -- Toon Moene (toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com