4 ms·
How hard is it to write a JVM? I'd think it pretty easy, as it's intended to be small and easily portable. You could even write one in Java (and I'm sure it's
by 6ren 13y ago
How hard is it to write a JVM? I'd think it pretty easy, as it's intended to be small and easily portable.
You could even write one in Java (and I'm sure it's been done, many times). EDIT e.g. http://igormaznitsa.com/projects/mjvm/index.html http://igormaznitsa.com/projects/mjvm/index.html
Of course, doing all the tricky JIT etc of the JVM is a different story...
- diek 13y agoIt depends on what you consider the JVM. If you're just talking about something that can load class files and do some instruction interpretation (like this project) then that's one thing... if you're talking about implementing all of the JNI functions within the JVM standard library (awt, net) along with the concurrency primitives (conforming to the Java memory model?) then that is a significant multi-year, multi-developer project.