>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.
> "Aaron Gray" <ang.use...@gmail.com> wrote in message > news:7atabvF20uv49U1@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.
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...
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" <ang.use...@gmail.com> wrote in message > news:7atabvF20uv49U1@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.
>> Thanks, but I cannot use GPL code. Only BSD or simular.
> How come? Are you trying to rip the code and incorporate it into your > project?
recently he has been working on LLVM, and this is probably related to this...
my project is LGPL, but I am more flexibly liscensed (since I wrote the code, I can make available portions of the code under different liscenses...).
of course, my disassembler is currently joined with my assembler and linker (mostly it serves the role of debug-dumping in-memory structures, ...).
and it is written in, of all things, C...
errm, and it follows my general approach of allowing code internal to a library to be a bit of a horrible mess, but mostly enforces modularity to keep the messes contained...
> Did really all contributors to > the GPL code agree with the license change or was all this > code completely rewritten?
AFAIK, all contributors were happy to agree, save that Yuri Zaporogets couldn't be found - his contribution was rewritten. As you'll recall, one of the Original Authors had to be waterboarded before he'd agree even to the "compromise" LGPL (which is what Nasm was), and the other was reluctant.
I thought this announcement might pull Betov out of "retirement"... or maybe he's "rolling over in his grave". Hope he's okay.
Now BigBadCorp can steal Nasm's code and sell it in competition with Tasm! You should have contributed something, Herbert! :)
> AFAIK, all contributors were happy to agree, save that Yuri Zaporogets > couldn't be found - his contribution was rewritten. As you'll recall, > one of the Original Authors had to be waterboarded before he'd agree > even to the "compromise" LGPL (which is what Nasm was), and the other > was reluctant.
No, I was (eventually) able to contact Yuri Zaporogets. As far as the original authors, they were both very cooperative, especially Simon, who helped me track down some additional information.
The only person on my list I wasn't able to get something from was Rafael Sevilla, who wrote rdf2ihx -- rdf2ihx was rewritten.
H. Peter Anvin wrote: > Frank Kotler wrote: >> AFAIK, all contributors were happy to agree, save that Yuri Zaporogets >> couldn't be found - his contribution was rewritten. As you'll recall, >> one of the Original Authors had to be waterboarded before he'd agree >> even to the "compromise" LGPL (which is what Nasm was), and the other >> was reluctant.
> No, I was (eventually) able to contact Yuri Zaporogets. As far as the > original authors, they were both very cooperative, especially Simon, who > helped me track down some additional information.
> The only person on my list I wasn't able to get something from was > Rafael Sevilla, who wrote rdf2ihx -- rdf2ihx was rewritten.
I stand corrected. Glad to hear you heard from Yuri. Last I talked to him, he was suffering from the bad economy in Ukraine.
Speaking of "old timers", I heard from Jerry Kassebaum the other day. Anyone remember him?