Skip to content

Commit 466d6d6

Browse files
committed
docs: update glossary with bytecode and opcode entries
Expanded Move Bytecode definition and added Opcode entry across English, Spanish, and Chinese glossaries with links to the new bytecode reference documentation.
1 parent a2b219d commit 466d6d6

File tree

3 files changed

+58
-6
lines changed

3 files changed

+58
-6
lines changed

src/content/docs/es/network/glossary.mdx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,18 @@ más información.
458458

459459
### Bytecode Move
460460

461-
- Los programas Move se compilan en **bytecode Move**.
462-
- El bytecode Move se usa para expresar scripts Move y módulos Move.
461+
- Los programas Move se compilan en **bytecode Move**, un formato de
462+
instrucciones basado en pila ejecutado por la
463+
[Máquina Virtual Move](#máquina-virtual-move-mvm).
464+
- El formato de bytecode define cómo se serializan los módulos en binario,
465+
incluyendo el conjunto de instrucciones, el sistema de tipos y la estructura
466+
del módulo.
467+
- Cada módulo compilado lleva un número de versión de bytecode que determina qué
468+
características habilita la VM durante la verificación y ejecución.
469+
470+
Consulta la
471+
[Referencia de Bytecode](/es/build/smart-contracts/bytecode) para la
472+
especificación binaria completa.
463473

464474
### Módulo Move
465475

@@ -529,6 +539,18 @@ sigue [Scripts Move](/es/build/smart-contracts/scripts/script-tutorial).
529539

530540
- Un **Octa** es la unidad más pequeña de [APT](#apt). 1 APT = 10<sup>8</sup> Octas.
531541

542+
### Opcode
543+
544+
- Un **opcode** es un valor de un solo byte que identifica una instrucción de
545+
[bytecode Move](#bytecode-move).
546+
- La VM de Move lee los opcodes secuencialmente desde la unidad de código de una
547+
función para determinar qué operación realizar (por ejemplo, cargar un valor,
548+
llamar a una función o ramificar).
549+
550+
Consulta la
551+
[Referencia del Conjunto de Instrucciones](/es/build/smart-contracts/bytecode/instructions)
552+
para la tabla completa de opcodes.
553+
532554
### Comunidad de Código Abierto
533555

534556
- **Comunidad de código abierto** es un término usado para un grupo de desarrolladores que trabajan en

src/content/docs/network/glossary.mdx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,15 @@ more information.
468468

469469
### Move Bytecode
470470

471-
- Move programs are compiled into **Move bytecode**.
472-
- Move bytecode is used to express Move scripts and Move modules.
471+
- Move programs are compiled into **Move bytecode**, a stack-based instruction
472+
format executed by the [Move Virtual Machine](#move-virtual-machine-mvm).
473+
- The bytecode format defines how modules are serialized into binary, including
474+
the instruction set, type system, and module structure.
475+
- Each compiled module carries a bytecode version number that determines which
476+
features the VM enables during verification and execution.
477+
478+
See the [Bytecode Reference](/build/smart-contracts/bytecode) for the full
479+
binary specification.
473480

474481
### Move Module
475482

@@ -539,6 +546,18 @@ follow [Move scripts](/build/smart-contracts/scripts/script-tutorial).
539546

540547
- An **Octa** is the smallest unit of [APT](#apt). 1 APT = 10<sup>8</sup> Octas.
541548

549+
### Opcode
550+
551+
- An **opcode** is a single-byte value that identifies a
552+
[Move bytecode](#move-bytecode) instruction.
553+
- The Move VM reads opcodes sequentially from a function's code unit to
554+
determine which operation to perform (for example, loading a value, calling a
555+
function, or branching).
556+
557+
See the
558+
[Instruction Set Reference](/build/smart-contracts/bytecode/instructions) for
559+
the complete opcode table.
560+
542561
### Open-Source Community
543562

544563
- **Open-source community** is a term used for a group of developers who work on

src/content/docs/zh/network/glossary.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,12 @@ sidebar:
315315

316316
### Move 字节码
317317

318-
- Move 程序被编译成 **Move 字节码**
319-
- Move 字节码用于表达 Move 脚本和 Move 模块。
318+
- Move 程序被编译成 **Move 字节码**,这是一种由
319+
[Move 虚拟机](#move-虚拟机mvm) 执行的基于栈的指令格式。
320+
- 字节码格式定义了模块如何序列化为二进制,包括指令集、类型系统和模块结构。
321+
- 每个编译后的模块都携带一个字节码版本号,决定了 VM 在验证和执行期间启用哪些功能。
322+
323+
请参阅[字节码参考](/zh/build/smart-contracts/bytecode)获取完整的二进制规范。
320324

321325
### Move 模块
322326

@@ -363,6 +367,13 @@ sidebar:
363367

364368
- **Octa**[APT](#apt) 的最小单位。1 APT = 10<sup>8</sup> Octa。
365369

370+
### Opcode(操作码)
371+
372+
- **Opcode(操作码)** 是标识 [Move 字节码](#move-字节码) 指令的单字节值。
373+
- Move VM 从函数的代码单元中顺序读取操作码,以确定要执行的操作(例如,加载值、调用函数或分支跳转)。
374+
375+
请参阅[指令集参考](/zh/build/smart-contracts/bytecode/instructions)获取完整的操作码表。
376+
366377
### 开源社区
367378

368379
- **开源社区** 是用于描述从事开源软件工作的开发人员群体的术语。如果您正在阅读这个术语表,那么您就是 Aptos 项目开发者社区的一部分。

0 commit comments

Comments
 (0)