Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C++ x86 Disassmbler

1 view
Skip to first unread message

Aaron Gray

unread,
Jun 29, 2009, 10:07:58 PM6/29/09
to
I have to write an objdump/bindump program and am looking for an x86
disassembler written in C++.

Many thanks in advance,

Aaron


Aaron Gray

unread,
Jun 29, 2009, 10:38:34 PM6/29/09
to
"Aaron Gray" <ang.u...@gmail.com> wrote in message
news:7atabvF...@mid.individual.net...

>I have to write an objdump/bindump program and am looking for an x86
>disassembler written in C++.

Ah, just found diStorm again, thought it was called DStorm. Its C code but
thats allright for now, may convert it to C++ or just use a wrapper for now.

http://ragestorm.net/distorm/

Its under a very permissive license :)

Aaron


cr88192

unread,
Jun 30, 2009, 10:31:56 AM6/30/09
to

"Aaron Gray" <ang.u...@gmail.com> wrote in message
news:7atc5eF...@mid.individual.net...

meanwhile, long ago (or, for a long time now), I wrote my own
disassembler...
it mostly shares code with my assembler, and is mostly used for debug
dumping.

still doesn't currently support AVX/VEX/SSE5 yet though (or any other
non-x86 arch...).
and it is LGPL...


> Aaron
>
>


Rod Pemberton

unread,
Jun 30, 2009, 2:50:31 PM6/30/09
to
"Aaron Gray" <ang.u...@gmail.com> wrote in message
news:7atabvF...@mid.individual.net...
> I have to write an objdump/bindump program and am looking for an x86
> disassembler written in C++.
>

Willow's vm64dec and qadasm2 (disassemblers) are both in C++. Available
here on "downloads" page:
http://code.google.com/p/vm64dec/

Willow was posting to alt.lang.asm, but I haven't seen a post in a while.

Some of the base code for an objdump type of program might be available from
Agner Fog's "Object file converter"... It converts between object file
formats. I don't think it has a disassembler. It's in C++ as objconv.zip
from here:
http://www.agner.org/optimize/

AFAICT, the other disassembly libraries I'm aware of are in C.


Rod Pemberton
PS. I've dropped comp.lang.misc and added alt.lang.asm on follow-ups to
this post.


Aaron Gray

unread,
Jul 1, 2009, 10:09:47 AM7/1/09
to
"Rod Pemberton" <do_no...@nohavenot.cmm> wrote in message
news:h2dmrv$293$1...@aioe.org...

> "Aaron Gray" <ang.u...@gmail.com> wrote in message
> news:7atabvF...@mid.individual.net...
>> I have to write an objdump/bindump program and am looking for an x86
>> disassembler written in C++.
>>
>
> Willow's vm64dec and qadasm2 (disassemblers) are both in C++. Available
> here on "downloads" page:
> http://code.google.com/p/vm64dec/

GNU GPL

> Willow was posting to alt.lang.asm, but I haven't seen a post in a while.
>
> Some of the base code for an objdump type of program might be available
> from
> Agner Fog's "Object file converter"... It converts between object file
> formats. I don't think it has a disassembler. It's in C++ as objconv.zip
> from here:
> http://www.agner.org/optimize/

GNU GPL

> AFAICT, the other disassembly libraries I'm aware of are in C.
>
>
> Rod Pemberton
> PS. I've dropped comp.lang.misc and added alt.lang.asm on follow-ups to
> this post.

Thanks, but I cannot use GPL code. Only BSD or simular.

disStorm looks like it should be a stopgap solution for now.

Aaron


0 new messages