go - Does a Virtual Machine have to interpret Bytecode or can it interpret the VM's assembly directly? -


I am planning to implement VM in Go. I have seen the tutorials where people have their own VM The assembly was designed, but the virtual machine did not execute the assembly code directly. He instructed every VN to direct every number of instructions and make special bytecode for his machine. Is it better to interpret a bytecoke or can you explain assembly code and get the same result?

If you want to use your VM in different guest platforms, then yes .

The advantage is that bytecoc gives you portability (hence the alternative nomenclature "P-code" , which "portable code" Em>.)

If you are planning to use your VM in your platforms, you will be able to get the bytecode. So you have to be careful to compile the program in bytecode instructions and take care of the VM balance.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -