In the spec for asm.js (at http://asmjs.org/spec/latest/ ) in the introduction section it says
"The asm.js language provides an abstraction similar to the C/C++ virtual machine"
..but I can't find any information on 'the C/C++ virtual machine' by googling. Can someone enlighten me or point me in the direction of a book/website which describes 'the c/c++ virtual machine'
A VM is a program that acts like a computer. It simulates a CPU along with a few other hardware components, allowing it to perform arithmetic, read and write to memory, and interact with I/O devices, just like a physical computer. Most importantly, it can understand a machine language which you can use to program it.
Summary. Virtual machines are programs that compile an intermediate language down to machine code. They are the result of an intelligent two-step compiler design. VMs allows multiple languages to be compiled down to machine code without needing separate hardware-specific compilers for each individual language.
The C standard talks about an abstract machine it makes assumptions about. I suppose that is what the author of asm.js
talks about.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With