Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: New Release - Visual Disassembler for the Atmel AVR

Re: New Release - Visual Disassembler for the Atmel AVR

2009-03-09 by David Appleton

I think this'd be a good tool to have!


John,

Does AVR Studio really disassemble, hex to C ?!

Will it work for GCC?

I'd love to have that ability.


Does anyone know if it disassembles reliably?







[Non-text portions of this message have been removed]

Re: [AVR-Chat] Re: New Release - Visual Disassembler for the Atmel AVR

2009-03-09 by Zack Widup

AFAIK the AVR disassembler only disassembles into assembly language. That's
why it's called a "disassembler" not a "discompiler".  :-)

But I've used it several times and it does work.

Zack


On 3/9/09, David Appleton <englsprogeny@yahoo.com> wrote:
>
>   I think this'd be a good tool to have!
>
> John,
>
> Does AVR Studio really disassemble, hex to C ?!
>
> Will it work for GCC?
>
> I'd love to have that ability.
>
> Does anyone know if it disassembles reliably?
>
> [Non-text portions of this message have been removed]
>
> 
>


[Non-text portions of this message have been removed]

Re: [AVR-Chat] Re: New Release - Visual Disassembler for the Atmel AVR

2009-03-09 by David Kelly

On Mon, Mar 09, 2009 at 05:11:39AM -0700, David Appleton wrote:
> I think this'd be a good tool to have!
> 
> 
> John,
> 
> Does AVR Studio really disassemble, hex to C ?!
> 
> Will it work for GCC?
> 
> I'd love to have that ability.

You already have avr-objdump which does a good (if not perfect) job.
Just add this to your Makefile (if you use make):

.elf.list:
        avr-objdump -DS $< > $@

And add a .list target to your build target:

all: object.elf object.list

And every time you build successfully there will be a .list disassembly
waiting for you.

-- 
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.