Re: compiling to jvm

Janusz Szpilewski <>
13 Nov 1997 23:35:56 -0500

          From comp.compilers

Related articles
compiling to jvm (1997-11-11)
Re: compiling to jvm (Janusz Szpilewski) (1997-11-13)
Re: compiling to jvm (1997-11-14)
Re: compiling to jvm (Lieven Marchand) (1997-11-15)
compiling to jvm (1997-11-16)
| List of all articles for this month |

From: Janusz Szpilewski <>
Newsgroups: comp.compilers
Date: 13 Nov 1997 23:35:56 -0500
Organization: Compilers Central
References: 97-11-059
Keywords: Java, C

Luiz Henrique de Figueiredo wrote:
> Does anyone have experience compiling languages other than Java to JVM?
> Is there a web page listing all known compilers?
> Thanks for any info.
> --

I think I can say some words as a C compiler for the JVM was the subject
of my recently written graduate thesis.

First of all, the JVM is an emulator of a low level environment. But it
is quite different than the existing hardware microprocessor systems.
Besides the standard sets of instructions and registers, it offers
support for managing objects, arrays, method invocations, global and
local variables and some basic data types (mainly those that appear in

But there are also some limitations like that there is no direct access
to the addresses of variables nor to the references to objects. This
feature makes a fully functional implementation of C pointers rather an
impossible task...

Telling it shortly, compilers of some languages can be better
implemented for the JVM than some other ones. Among successful
implementations there are compilers of Prolog, Lisp, Logo and Basic.

A list of existing compilers and interpreters for the JVM can be found

Some other useful addresses:

the JVM specification:

Jasmin assembler for the JVM (GNU license):

Java Bytecode assembler:

JavaCC - lexical/syntactic LL(k) analyzer generator:

I hope it will help.

Janusz Szpilewski

Post a followup to this message

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