WebAssembly 中的所有指令都是用“uint8”数字编码的吗?
Are all the instructions in WebAssembly encoded with “uint8” numbers?
WebAssembly 中的所有指令是否都像上面显示的那样用“uint8”数字编码? WebAssembly 标准如下所示:
In the MVP, the opcodes of instructions are all encoded in a single byte since there are fewer than 256 opcodes.
我需要确认一下。
谢谢!
规范指出,对于以二进制格式编码的 WebAssembly 模块:
Instructions are encoded by opcodes. Each opcode is represented by a single byte, and is followed by the instruction’s immediate arguments, where present.
然后继续详细说明每条指令的操作码,例如:
instr::=
0x1A ⇒ drop
0x1B ⇒ select
规范为您提供了字节的具体值,因此有符号或无符号的解释是没有意义的。
WebAssembly 中的所有指令是否都像上面显示的那样用“uint8”数字编码? WebAssembly 标准如下所示:
In the MVP, the opcodes of instructions are all encoded in a single byte since there are fewer than 256 opcodes.
我需要确认一下。
谢谢!
规范指出,对于以二进制格式编码的 WebAssembly 模块:
Instructions are encoded by opcodes. Each opcode is represented by a single byte, and is followed by the instruction’s immediate arguments, where present.
然后继续详细说明每条指令的操作码,例如:
instr::=
0x1A ⇒ drop
0x1B ⇒ select
规范为您提供了字节的具体值,因此有符号或无符号的解释是没有意义的。