Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Joachim Wesner <joachim.wesner@frankfurt.netsurf.de>
Subject: Re: assembly programming on alphas
Date: 1998/12/12	[thread overview]
Message-ID: <3672BB92.6236237E@frankfurt.netsurf.de> (raw)
In-Reply-To: ufg1all1n6.fsf@ftp.ardi.com

Clifford T. Matthews wrote:
> 
> >>>>> "Joachim" == Joachim Wesner <joachim.wesner@frankfurt.netsurf.de> 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 <main>:
> {
>    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 <main+0x18>
> }
>   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



  reply	other threads:[~1998-12-12  5:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-10  5:00 assembly programming on alphas Bram
1998-12-12  5:00 ` Joachim Wesner
1998-12-12  5:00   ` Clifford T. Matthews
1998-12-12  5:00     ` Joachim Wesner [this message]
1998-12-19  5:00   ` Toon Moene
1999-01-05  5:00     ` Alex Rhomberg
1999-01-06  5:00       ` Bram Stolk
1998-12-12  5:00 ` Raymond Doetjes
1998-12-11  5:00   ` Bram
1998-12-12  5:00 ` Bradley DeJong
1998-12-12  5:00   ` Reginald Beardsley
1998-12-16  5:00     ` Paul Repacholi
1998-12-13  5:00 ` dontspam_esci
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox