You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does WebAssembly have an opcode number that is guaranteed to never be used? This would be valuable to compiler writers who want to experiment with new opcodes and features. The experimental compiler would be paired with a corresponding interpreter.
The opcode could be followed by a length that tells the interpreter where to restart interpretation.
The text was updated successfully, but these errors were encountered:
BSalita
changed the title
Will-Never-Use Opcode
Will-Never-Use Opcode?
May 12, 2016
A significant idea that's being discussed in a variety of places is that of an opcode table, which would be a table in a wasm module that declares a mapping from numbers to strings, with the strings holding opcode names, and then the binary code would refer to these operators by number.
The opcode table would be more flexible than a single fixed reserved opcode range, because adding new opcodes would just be a matter of making up new names for them and adding them to the table in a wasm module that wants to use them. In particular, two people working independently on unrelated features would be likely to pick different names for their opcodes, so their extensions would be more likely to be compatible with each other than if they both used opcodes from the same fixed reserved range.
Does WebAssembly have an opcode number that is guaranteed to never be used? This would be valuable to compiler writers who want to experiment with new opcodes and features. The experimental compiler would be paired with a corresponding interpreter.
The opcode could be followed by a length that tells the interpreter where to restart interpretation.
The text was updated successfully, but these errors were encountered: