Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the c/c++ virtual machine referred to in the asm.js spec

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'

like image 493
James Cat Avatar asked Aug 13 '13 19:08

James Cat


People also ask

What is virtual machine in assembly language?

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.

What is virtual machine code?

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.


1 Answers

The C standard talks about an abstract machine it makes assumptions about. I suppose that is what the author of asm.js talks about.

like image 185
glglgl Avatar answered Sep 28 '22 17:09

glglgl