Re: Java virtual machine as target language for C/C++

Roedy Green <roedy@BIX.com>
5 May 1996 17:45:35 -0400

          From comp.compilers

Related articles
Java virtual machine as target language for C/C++ Drinie@xs4all.nl (1996-05-04)
Re: Java virtual machine as target language for C/C++ roedy@BIX.com (Roedy Green) (1996-05-05)
Re: Java virtual machine as target language for C/C++ dw3u+@andrew.cmu.edu (Daniel C. Wang) (1996-05-05)
Re: Java virtual machine as target language for C/C++ tmb@best.com (1996-05-06)
Re: Java virtual machine as target language for C/C++ albaugh@agames.com (1996-05-06)
Re: Java virtual machine as target language for C/C++ dodd@csl.sri.com (1996-05-06)
Re: Java virtual machine as target language for C/C++ brauch@hpp.stanford.edu (Rupert Brauch) (1996-05-06)
Re: Java virtual machine as target language for C/C++ kik@zia.cray.com (1996-05-08)
[22 later articles]
| List of all articles for this month |
From: Roedy Green <roedy@BIX.com>
Newsgroups: comp.lang.java,comp.lang.c++,comp.compilers
Date: 5 May 1996 17:45:35 -0400
Organization: Canadian Mind Products
References: 96-05-036
Keywords: C, Java

Rinie Kervel wrote:
>But as the Java virtual machine gets integrated in many OSes it would
>be nice to use it as a target language for other languages.
>
>Is it possible (and will Sun allow it) to extend the JVM to support
>pointer arithmetic.


If they tried they would have an armed insurrection from the Java
programmers. The whole idea of Java is to prevent actions that
compromise system integrity.


There is nothing to stop the C++ people from implementing their own VM
and JITs and portable AWT after the manner of Java. However VM for
C++ would need to be quite different. It would have to nail down the
rules for embedding struct layouts precisely, and the internal formats
for big-endianess and packing slack bytes. The Java VM does not have
to do that. Java IS the end result of squeezing C++ into portable
form, so you might as well fly with Java.


Roedy@bix.com <Roedy Green of Canadian Mind Products> contract programming
-30-
--


Post a followup to this message

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