Re: anyone interested in decompilation

Juergen Kahrs <Juergen.Kahrs@vr-web.de>
10 Aug 2006 15:44:09 -0400

          From comp.compilers

Related articles
Re: anyone interested in decompilation dcorbit@connx.com (2006-08-03)
Re: anyone interested in decompilation emailamit@gmail.com (Amit Gupta) (2006-08-04)
Re: anyone interested in decompilation martin@gkc.org.uk (Martin Ward) (2006-08-04)
Re: anyone interested in decompilation gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-08-08)
Re: anyone interested in decompilation Juergen.Kahrs@vr-web.de (Juergen Kahrs) (2006-08-10)
Re: anyone interested in decompilation kym@ukato.freeshell.org (russell kym horsell) (2006-08-11)
Re: anyone interested in decompilation chris.dollin@hp.com (Chris Dollin) (2006-08-12)
Re: anyone interested in decompilation Juergen.Kahrs@vr-web.de (=?ISO-8859-1?Q?J=FCrgen_Kahrs?=) (2006-08-13)
Re: anyone interested in decompilation gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-08-14)
Re: anyone interested in decompilation DrDiettrich1@aol.com (Hans-Peter Diettrich) (2006-08-14)
Re: anyone interested in decompilation chris.dollin@hp.com (Chris Dollin) (2006-08-14)
[3 later articles]
| List of all articles for this month |

From: Juergen Kahrs <Juergen.Kahrs@vr-web.de>
Newsgroups: comp.compilers
Date: 10 Aug 2006 15:44:09 -0400
Organization: Compilers Central
References: <1154507032.629515.108580@m79g2000cwm.googlegroups.com> 06-08-017 06-08-037
Keywords: Java, disassemble
Posted-Date: 10 Aug 2006 15:44:09 EDT

glen herrmannsfeldt wrote:


>>>from a program executable. Many decompilers exist for Java and .NET as
>>
>>>the program executables (class files) maintain much of the information
>>>found in the source code. This is not true for machine code
>>>executables however.
>
>
> JVM isn't all that different from many machines. I think it is more
> the exception model of Java that prohibits many optimizations that
> otherwise might confuse decompilers.


JVM _is_ different. JVM defines special fields for the line
numbers of the source code in the byte code. That's what the
OP was asking for. Some years ago I studies the JVM spec and
after this I knew why the de-compiled/disassembled byte code
had such a high quality and readability. There are tools for
removing these "comments" from the byte code.


JVM is also different in that it doesnt know the concept
of a pointer. This disadvantage is essential when comparing
.NET binaries and Java byte code.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.