2 ms·
Webassembly is much more restricted than regular machine code. It's a stack machine with a limited set of operations, no direct control over the stack/control
by the_duke 5y ago
Webassembly is much more restricted than regular machine code.
It's a stack machine with a limited set of operations, no direct control over the stack/control flow and restricted access to memory.
It's way easier to compile this limited set of operations to assembly (or C) that is guaranteed to not do things it shouldn't.