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: ctm@ardi.com (Clifford T. Matthews) Subject: Re: assembly programming on alphas Date: 1998/12/12 Message-ID: #1/1 X-Deja-AN: 421567475 Sender: ctm@ftp.ardi.com References: <36704B54.55298E9F@xs4all.nl> <36729BEF.36CA000C@frankfurt.netsurf.de> Organization: ARDI Newsgroups: comp.os.linux.alpha >>>>> "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