[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-objdump behaviour
From: |
gouy yann |
Subject: |
Re: [avr-gcc-list] avr-objdump behaviour |
Date: |
Thu, 11 Nov 2004 23:22:57 +0100 (CET) |
--- "E. Weddington" <address@hidden> a écrit :
> gouy yann wrote:
>
> >Hi,
> >
> >my context is:
> > I compile several files from the same directory,
> > I link them
> > and finally, I extract the .lst from the .elf.
> >
> >then,
> > why for some files the C is mixed with the
> assembly?
> > why for others it is not, only the assembly is
> seen?
> >
> >
> >
>
> From the Binutils 2.15 user manual, on objdump
>
<http://sources.redhat.com/binutils/docs-2.15/binutils/objdump.html#objdump>:
>
>
-------------------------------------------------------------------------
>
> |-S|
>
> |--source|
> Display source code intermixed with disassembly,
> if possible.
> Implies |-d|.
>
>
-------------------------------------------------------------------------
>
> Note the words, "if possible". When you use
> objdump, you are getting a
> disassembly from the ELF file, which is a binary
> format. I'm surprised
> you would even get *any* C source code from it. It's
> probably getting
> what little C source code it has from debugging
> information embedded in
> the ELF file. (As a side note, I wonder if you strip
> the ELF file [using
> avr-strip], if you don't get any C source code from
> avr-objdump?)
I don't strip the ELF file, I'm using the Makefile
provided with WinAVR.
but I'll take a look to the binutils mailing list.
thanks.
Yann
>
> For more information as to why, it would be best to
> ask the developers
> on the binutils mailing list:
> <http://www.gnu.org/software/binutils/>
>
>
>
=====
Vous manquez despace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour
dialoguer instantanément avec vos amis. A télécharger gratuitement sur
http://fr.messenger.yahoo.com
Re: [avr-gcc-list] avr-objdump behaviour, Erik Christiansen, 2004/11/15