Re: anyone interested in decompilation

=?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.Kahrs@vr-web.de>
13 Aug 2006 01:30:14 -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)
Re: anyone interested in decompilation barry.j.kelly@gmail.com (Barry Kelly) (2006-08-15)
Re: anyone interested in decompilation gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-08-15)
User defined precedence for user defined operators. derek@knosof.co.uk (Derek M Jones) (2006-08-15)
| List of all articles for this month |
From: =?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.Kahrs@vr-web.de>
Newsgroups: comp.compilers
Date: 13 Aug 2006 01:30:14 -0400
Organization: Compilers Central
References: <1154507032.629515.108580@m79g2000cwm.googlegroups.com> 06-08-017 06-08-037 06-08-047 06-08-060
Keywords: Java, disassemble
Posted-Date: 13 Aug 2006 01:30:14 EDT

Chris Dollin wrote:


> This is a pet hate of mine: the JVM /does/ "know the concept of a
> pointer". You can hardly move in the JVM without using pointers, since
> they're the only way of handling arrays or instances of class types.
>
> What the JVM lacks is a notion of /pointer arithmetic/.


Yes, I see what you mean.


http://java.sun.com/docs/books/vmspec/2nd-edition/html/Overview.doc.html#12237


    A reference to an object is considered to have
    Java virtual machine type reference. Values of
    type reference can be thought of as pointers to
    objects. More than one reference to an object
    may exist. Objects are always operated on, passed,
    and tested via values of type reference.


> [It's handy to use `reference` to mean `pointer without arithmetic
> opportunities`, but then C++ uses it for something else, not
> unrelated, again ...]


The Java type "reference" misses not only pointer arithmetic but also
type casting (of pointers) and the address operator (&). You may of
course argue that such features are not desirable. The absence of
such feature makes it much harder to write compilers for a translation
from ISO C to JVM. The CLR environment of .NET is different in this
respect. And most other virtual machines treat the concept of a
pointer as a natural ingredient of a virtual machine.


Post a followup to this message

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