I know that some piececes of the bytecode are compiled into assembly at runtime. However all resources that I read do not mention what happens to the rest of the code. Is it interpreted by c++?
- You are mixing up terms. Some byte code is compiled to native code, no assembly step involved. The byte code which is not compiled will get interpreted; the interpreter might be implemented using C++, but whether it is, is irrelevant as at runtime, the interpreter will consist of executable native code, of course.Holger– Holger2016-04-25 15:46:54 +00:00Commented Apr 25, 2016 at 15:46
Add a comment |
1 Answer
The JIT compiler compiles the byte-code to native code for execution; if you're on a platform without a JIT then the byte-code is interpreted.