avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Instruction count


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] Instruction count
Date: Wed, 15 Jan 2003 10:43:56 -0800 (PST)

On Wed, 15 Jan 2003, Anubhav wrote:

:) Hi Folks,
:)        I am compiling a file using avr-gcc for atmega
:) 128. I wanted to get the number of instructions in the
:) program.
:)
:) I can get the disassembeled file using objdump -d for
:) a gcc compiled ELF for x86 platform. but when i use
:) this with avr compiled ELF, it exits saying unknown
:) architecture.
:)
:) Is there a similar program
:) or can I compile the source with some options to spit
:) out the file containing instructions in a readable
:) format ?

Did you try avr-objdump?

If you give objdump the --help option it will tell what architectures and
targets it was compiled for. From my linux box:

  $ avr-objdump --help
  <snip>
  avr-objdump: supported targets: elf32-avr elf32-little elf32-big srec 
symbolsrec tekhex binary ihex
  avr-objdump: supported architectures: avr avr:1 avr:2 avr:3 avr:4 avr:5
  Report bugs to address@hidden

  $ objdump --help
  <snip>
  objdump: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 
elf32-little elf32-big srec symbolsrec tekhex binary ihex trad-core
  objdump: supported architectures: i386 i386:x86-64 i8086 i386:x86-64:intel 
i386:intel
  Report bugs to address@hidden and address@hidden

Notice the difference.

Ted Roth

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]