Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28908
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: any java lib can decode x86 cpu instruction |
| Date | 2014-07-02 09:37 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <clc8r9dk0q0bhh635d9ru9hci3ftgvcfnh@4ax.com> (permalink) |
| References | <los89k$l66$1@speranza.aioe.org> <qmt3r913htiobv9bch80v1rioferlbgd4p@4ax.com> <louq2t$fp$1@speranza.aioe.org> |
On Wed, 02 Jul 2014 01:10:57 +0800, Peter <mcheung63@gmail.com> wrote, quoted or indirectly quoted someone who said : >I am looking for a x86 disassembler in java I wrote my own assembler years for 16 bit 8086 apps. At the time VTech had a 16-bit disassembler. I also used Periscope which let me trace and disassemble. I used them to help verify my work. Both disappeared, and I was never able to find a 32 or 64-bit disassembler written in any language. The Intel instruction set is difficult to disassemble. You have to do a lot of guessing. You can't even tell for certain if something is instructions or data. The Motorola chips, in contrast, were ever so much simpler. Very few people actually write any assembler any more: C compiler writers, Jet Java compiler optimisers. It is generated by programs. At one point Jet could be persuaded to show me an assembler listing of its generated code. I was astounded to discover it did better than my best hand-generated code where I calculated the cycles for every instruction and did all-possibilities analysis. It considers pipelines and does versioning too. Writing assembler code is now, like chess, best left to machines. There are of course Java decompilers and disassemblers, that work on class files. Java is REALLY easy to decompile. http://mindprod.com/jgloss/decompiler.html -- Roedy Green Canadian Mind Products http://mindprod.com A program is only as good as its worst piece of code. ~ Joshua Cramer
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
any java lib can decode x86 cpu instruction Peter <mcheung63@gmail.com> - 2014-07-01 01:55 +0800
Re: any java lib can decode x86 cpu instruction Roedy Green <see_website@mindprod.com.invalid> - 2014-06-30 16:48 -0700
Re: any java lib can decode x86 cpu instruction Peter <mcheung63@gmail.com> - 2014-07-02 01:10 +0800
Re: any java lib can decode x86 cpu instruction Roedy Green <see_website@mindprod.com.invalid> - 2014-07-02 09:37 -0700
Re: any java lib can decode x86 cpu instruction "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-14 12:18 +0100
csiph-web