Re: anyone interested in decompilation

Hans-Peter Diettrich <DrDiettrich1@aol.com>
14 Aug 2006 15:06:58 -0400

          From comp.compilers

Related articles
[3 earlier articles]
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)
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: 14 Aug 2006 15:06:58 -0400
Organization: Compilers Central
References: <1154507032.629515.108580@m79g2000cwm.googlegroups.com> 06-08-017 06-08-037 06-08-047 06-08-060 06-08-065
Keywords: Java, translator
Posted-Date: 14 Aug 2006 15:06:58 EDT

Jürgen Kahrs wrote:


> 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.


At least such features are not required in a programming language, as
Java demonstrates ;-)


> The absence of such feature makes it much harder to write compilers
> for a translation from ISO C to JVM.


Translation or translators between C and Java, or .NET, all suffer from
essentially the same problem: the target system doesn't support all the
features of the source system. In either direction.


> 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.


Java references translate well to managed .NET code, whereas C pointers
only translate to unmanaged code, with all known risks.


DoDi


Post a followup to this message

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