File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Writing a JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Writing a JVM" Watch "Writing a JVM" New topic

Writing a JVM

Scott Large

Joined: Nov 19, 2002
Posts: 3
I want to write my JVM for Win32(why? because I'm a geek and thought it would be challenge).
I wish to write the jvm as much as possible in java but understand that parts may have to be write in C.
I understand the class file format but does anyone know how I would go about implement a JVM. Any good resources. The JVM spec does not exlain the execution of the class files. Any pointers.
Thanks in advance.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Nope - this is java - no pointers . (Sorry - it was there to be said ).
What part about the execution do you not understand. The reason that the JVM Spec is written that way is that there is no rule the the JVM must be written in Java (many are not), just that is behave as described in the Spec.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Scott Large

Joined: Nov 19, 2002
Posts: 3
I read that a jvm converts the bytecode to the native machine code. I wondering how this is done.
Is this a misrepresentation?
I can understand that the bytecode in a class file can be parsed by any language and processed but this doesn't mean that the native machine code is created?
My big question is how do I create native machine code? Any help you can give? Is it just a case of creating a file in the binary (for example Win32 PE file format)?
This is leading onto my next question, writing a native compiler?
I agree. Here's the link:
subject: Writing a JVM
It's not a secret anymore!