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

Drinie@xs4all.nl (Rinie Kervel)
4 May 1996 23:24:09 -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)
[23 later articles]
| List of all articles for this month |

From: Drinie@xs4all.nl (Rinie Kervel)
Newsgroups: comp.lang.java,comp.lang.c++,comp.compilers
Date: 4 May 1996 23:24:09 -0400
Organization: Incore Automatisering
Keywords: Java

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.


Some notes:
- Not every application is required to be secure
(You could trust your own programs, just as you have to
trust your web browser :)


- Most pointer arithmetic can just as well be bounds checked:
just as you can say that
for an array a[100] a[i] is only valid if 0 <= i && i < 100


For a pointer you can define a low address and a high addres
and test after each operation on the pointer if it still lies
between these bounds or is NULL (and may not be dereferenced)


Does anyone know if proposals for such extensions have been made/
are considered.


Rinie
--


Post a followup to this message

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