Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing a JVM

 
Scott Large
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Scott Large
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic