Re: How to translate a language that runs on JVM?

vbdis@aol.com (VBDis)
9 Jan 2005 20:49:46 -0500

          From comp.compilers

Related articles
How to translate a language that runs on JVM? jrefactors@hotmail.com (2005-01-03)
Re: How to translate a language that runs on JVM? sgganesh@gmail.com (2005-01-09)
Re: How to translate a language that runs on JVM? holycall@paran.com (Seokwoo Choi) (2005-01-09)
Re: How to translate a language that runs on JVM? vbdis@aol.com (2005-01-09)
Re: How to translate a language that runs on JVM? news8573@paulcager.com (Paul Cager) (2005-01-09)
Re: How to translate a language that runs on JVM? napi@cs.indiana.edu (2005-01-12)
Re: How to translate a language that runs on JVM? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-01-12)
Re: How to translate a language that runs on JVM? pohjalai@cc.helsinki.fi (A Pietu Pohjalainen) (2005-01-12)
Re: How to translate a language that runs on JVM? caseyh@istar.ca (Casey Hawthorne) (2005-01-14)
| List of all articles for this month |

From: vbdis@aol.com (VBDis)
Newsgroups: comp.compilers
Date: 9 Jan 2005 20:49:46 -0500
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
References: 05-01-012
Keywords: Java, translator

jrefactors@hotmail.com schreibt:


>If we want to write a language translator that translates one language
>to another language (Java Source Code or Byte Code) that runs on JVM,
>which of the following approaches is better?


If your language is sufficiently Java compatible, then a textual
translation into Java may be easier to implement, and certainly is
much easier to debug, due to the readable output.


Otherwise JVM bytecode is equivalent to the machine code produced by
native compilers. The only advantage here is the simplicity of the VM,
that allows to exclude some optimizations that are suggested for other
machines (register allocation...).


DoDi



Post a followup to this message

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