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

tmb@best.com (Thomas Breuel)
6 May 1996 23:11:46 -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)
Re: Java virtual machine as target language for C/C++ billms@nixon.icsl.ucla.edu (1996-05-08)
Re: Java virtual machine as target language for C/C++ sal714@rs710.gsfc.nasa.gov (1996-05-08)
[20 later articles]
| List of all articles for this month |

From: tmb@best.com (Thomas Breuel)
Newsgroups: comp.lang.java,comp.lang.c++,comp.compilers
Date: 6 May 1996 23:11:46 -0400
Organization: home
References: 96-05-036
Keywords: Java

Drinie@xs4all.nl (Rinie Kervel) writes:


      I know that Java does not support pointer arithmetic.


      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.


Yes, it could support safe pointer arithmetic. However, that really
isn't necessary. Correct, portable C/C++ code can be executed
reasonably efficiently within the current JavaVM. However, building
compilers for that is tricky.


More likely, you are going to see conversion tools that will do 95% of
the job. The places where they give up are likely to be places in the
C/C++ code that needed attention anyway.


Thomas.
--


Post a followup to this message

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