Files
Interpreter/isa/README.md
T
AdminandCursor 2eb2468119 划定 CMake 模块目录并补充各层 README。
固定 isa/compiler/vm/host 的职责边界,样例与测试单独成目录。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 16:32:07 +08:00

18 lines
628 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# isa
共享契约库。CMake 目标:`isa``STATIC``INTERFACE`),无依赖。
`compiler` 写映像、`vm` 读映像,两边只依赖本目录,彼此不链接。
## 职责
- 约 20 条寄存器指令的编码(`MOVE``LOADK`、跳转、`LOAD_I` / `STORE_Q``CALL` / `RET``CAL_TON` 等)
- 映像头:函数字节码、全局 / FB 数据槽、工程哈希
- 定宽类型:第一版 `BOOL``INT``TIME`
## 不放什么
解析器、符号表、扫描周期循环、I/O 采样。那些分别属于 `compiler``vm``host`
指令表可作为内部 IR 的文本形态,不必当主语言。