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: Joachim Wesner Subject: Re: assembly programming on alphas Date: 1998/12/12 Message-ID: <3672BB92.6236237E@frankfurt.netsurf.de>#1/1 X-Deja-AN: 421584677 Content-Transfer-Encoding: 7bit References: <36704B54.55298E9F@xs4all.nl> <36729BEF.36CA000C@frankfurt.netsurf.de> Content-Type: text/plain; charset=us-ascii X-Trace: 12 Dec 1998 19:54:34 -0100, deck-106.frankfurt.netsurf.de Organization: OMNILINK -- your link to the Net MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Clifford T. Matthews wrote: > > >>>>> "Joachim" == Joachim Wesner writes: > > Joachim> 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. > > Joachim> To my knowledge, there is no way to have the assembly output > Joachim> mixed with the C-source on gcc/egcs. I would love to hear > Joachim> about any possibility. > > alpha.ardi.com 1.5 objdump --disassemble --source foo.o > > foo.o: file format elf64-alpha > > Disassembly of section .text: > > 0000000000000000
: > { > 0: f0 ff de 23 lda sp,-16(sp) > 4: 00 00 5e b7 stq ra,0(sp) > 8: 08 00 fe b5 stq fp,8(sp) > c: 0f 04 de 47 mov sp,fp > return 0; > 10: 00 04 ff 47 clr v0 > 14: 00 00 e0 c3 br 18 > } > 18: 1e 04 ef 45 mov fp,sp > 1c: 00 00 5e a7 ldq ra,0(sp) > 20: 08 00 fe a5 ldq fp,8(sp) > 24: 1e 14 c2 43 addq sp,0x10,sp > 28: 01 80 fa 6b ret zero,(ra),0x1 > 2c: 00 00 00 00 halt 'scuse us, but this is just NOT what we were talking about, a .S file is even better, What is wanted is a listing that directly relates the C source code lines with assembly code blocks, to eliminate some initial but could be avoidable guessing/analysis when trying to understand gcc/egcs output. Joachim