Re: Alternative to JVM




Andrew Reilly wrote:
On Wed, 19 Jul 2006 02:33:43 -0700, toton wrote:

Is there any alternative to JVM exists as research product, like a 2
address or 3 address instruction set VM ? Ofcourse it won't be able to
compile class file, but can run Java program with help of a different
compiler, which will compile Java to a 2-address / 3-address
instruction code based class. I am specially interested if some
compiler compiles Java to DLX processor...

I am not looking for a commercial product, even any research
implementation or a IEEE/ ACM paper will help me ...

The only one that I know of is a commercial product, sorry. Investigate
TAO's "Intent" platform (http://tao-group.com). Their VM is (or was, the
last time I looked) sort of three-register RISC-like, and they transcode
java, if you want that. They've been doing this since the early nineties.

You might also want to try telling GNU's GJC to compile for a MIPS (or
perhaps Knuth's MMIX) or PowerPC or similar target. Then all you need is
an appropriate simulator. Qemu might do that job OK for you.

There might also be some milage to be had in the LLVM (low level virtual
machine) infrastructure: (http://llvm.org). LLVM's home page doesn't
indicate that it supports Java at the moment, but since it's C and C++
front ends are somehow GCC-based, then maybe GJC wouldn't be too much of a
stretch.

Cheers,

--
Andrew
Thanks for the quick reply. I will look at LLVM. GCJ is too big to
investigate it's code. Basically I was looking how to translate a
language grammer tree to a 2-address / 3-address instruction set. It is
not very difficult for stack machine, but creates some difficulty for a
2-address/3-address machine.
So I was looking for the detail. Most of the new VM's are coming as
stack machine (Java/ .NET etc), while most of the real machines are
2-address/3-address (except mobile/PDA etc). Thus JIT compilation is
little difficult as it needs to get transformed from stack ISA to these
formats. Also it looses certain information while it makes stack code
(.class files). So I was investigating how it can make a 2/3 address
class file from Parse Tree directly.

Again thanks for the reply.
abir

.



Relevant Pages

  • Version problem causing issues after removal
    ... specific class file to add our edits into. ... Recently we compiled our java class file with java 1.6. ... compile with 1.4.2 since our users are still on that level of java on ...
    (comp.lang.java.programmer)
  • Incremental Java Compile
    ... I've been trying to do this for Java. ... 2- Each class file depends on the last not-no-op build of all ... separate compile per java file to get useful information from Javac's ...
    (comp.lang.java.programmer)
  • Re: Package and compiling
    ... When I compile a java source file with a package statement I ... > class file there. ...
    (comp.lang.java)
  • Re: Running java applications on any platform
    ... > is needed to run the application on another platform (assuming the platform ... > To put it simply, I compile my application, put the .class file on a CD Rom. ... java -jar myapp.jar and additionally under Windows by double clicking. ...
    (comp.lang.java.programmer)
  • Re: Alternative to JVM
    ... address or 3 address instruction set VM? ... compile class file, but can run Java program with help of a different ...
    (comp.lang.java.machine)