Cycle time of Java bytecode execution
Hi there,
I am currently doing research on Java optimized processor. I need to write a simulator for JVM. I wonder if it is possible for me to have a look-up table to have all the bytecode instructions with the cycle times of execution. I think bytecode will actually run at physical chips and the cycles times could be vary. I wonder if it possible for me to assume the cycle time for the purpose of my research.
It will be great appreciated If anyone knows that there is a bytecode simulator, which will take bytecode stream as input, downloadable and let me know.
Thank you for anyone's response in advance.
Hopefully you have a lot of time.
There is at least one free VM out there. You can find it, figure out how it works and then modify it.
Actually you could do the same for the Sun VM since you can download the source code. But you would need to be careful about how that was eventually used and I suspect it would be harder to figure out than free ones.
> I wonder if it possible for me to assume the cycle time for the purpose of my research.
You would need to go through each command and logically verify that but I suspect the answer would be yes. Note however that that doesn't mean that you can time such a process on a normal computer and expect to see a constand time.
Hi there,
Just finish this topic. I think I get the answer myself.
There is a no such thing like bytecode execution cycles in commen sense. Execution cycles will depend on implementation. If there is no implementation, how the executin cycles come from.
I did found some open sourece JVM, but I didi not try any one yet. If anyone have interest in it, you could search on the Internet. It should be be difficult to get one. I cannot recommend any, as I did not have time to try it.
Thank you,