From: | Andreas Krall <andi@complang.tuwien.ac.at> |
Newsgroups: | comp.compilers |
Date: | 23 Jan 1996 17:31:53 -0500 |
Organization: | Compilers Central |
References: | 96-01-037, |
Keywords: | interpreter, translator |
"Peter Seibel" <seibel@sirius.com> writes:
>So I'm asking you all: how easy/hard/impossible would it be to write a
>compiler for your favorite language(s) that compiles to Java VM
>byte-codes. ...
The easiest way to compile a programming language to the Java VM is to
cross-compile to Java and use the Java compiler to generate Java VM code.
So you don't need to know the details of the Java VM and you can use all
the features of Java like garbage collection and libraries. But you need
to know Java implementation in some detail to make design decisions like
using implicitely Javas internal stack or using a stack explicitely and
things like that.
Andi
--
andi@complang.tuwien.ac.at Andreas Krall
http://www.complang.tuwien.ac.at/andi/ Inst. f. Computersprachen, TU Wien
tel: (+431) 58801/4462 Argentinierstr. 8/4/1851
fax: (+431) 5057838 A-1040 Wien AUSTRIA EUROPE
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.