4 ms·
This might be my ignorance of virtual machines, but what prevents vm authors to compile bytecode into asm??
by elai 18y ago
This might be my ignorance of virtual machines, but what prevents vm authors to compile bytecode into asm??
- GrandMasterBirt 18y agoTo install ANYTHING on iPhone you need to get apple's approval and have apple distribute it for you. iPhone won't run anything without the Apple private key. Which means if you want to install a JVM or Flash VM you need to install the VM onto iPhone apple won't let you. If you compile the Java bytecode into C-code (as GCJ does) you still have the problem of actually installing that compiled code onto the iPhone.
- rtf 18y agoNot a whole lot, but compiling to the machine is a more difficult task than writing an interpreter. "Just-In-Time" VMs (Java and Flash 9 both do this) do some amount of this compilation as the program starts and executes. That lets them strike a balance between startup time(running a full compile can be quite slow) and execution speed.
- GrandMasterBirt 18y agoThe point is ability to INSTALL it. Compiling the bytecode of flash into C or whatever iPhone runs on is not the problem it can be done if necessary, its actually having anything run on the iPhone that is... The advantage of bytecode is that it can run on any operating system/architecture, the VM will take care of executing it as binary code on whatever system it is installed on. This way you can go to youtube from any OS and if you have flash installed it works. Its not just about compiling into binary and startup times :)... Now having said that when are the iPhone ruby and python VMs coming out?