1
votes

can bytecode be run without a virtual machine?

Could an micro kernel operating system for example have a Execution server that can JIT(convert bytecode into native code and run) it without the need of a full virtual machine environment.

or would some other components of the virtual machine be needed to run the program?

and why would it work?

1
The short answer is yes. The followup question is Why?Wug
Your "micro-kernel" would be the vm. Once you achieved one, add a byte code interpreter, Bob's your mother's sister's brother. Real question is what can your micro kernel do and how does it do it.Tony Hopkinson
I'm in the design stages of making one I figure it's better to make sure that I'm not going down a impossible path first. I have almost the whole design now but this part. this is also going to run on top of other OSes hosted like AROS OS.Taylor Ramirez

1 Answers

2
votes

I believe, that you can always convert any bytecode to the native one.

Basically, it has disadvantage of one extra step to be done + platform dependency, but at the end your code theoretically afterwards should :) run faster.

In fact for example in java, there is so called JIT compilation ( http://en.wikipedia.org/wiki/Just-in-time_compilation ), so that things that run frequently can run fast.