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.
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
Joined: Nov 19, 2002
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?