Files
Interpreter/Doc/host/宿主入口.md
T

19 lines
798 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.
# 宿主入口
host 模块:可执行入口。CMake 目标:`host``EXECUTABLE`),链接 `compiler``vm`
第一版一条命令:读工程 → 编译映像 → 按扫描周期跑。不拆独立的编译器可执行文件。总顺序见 [`初步计划.md`](../初步计划.md) 第 12.10 节。
## 职责
-`project.toml` 和其中的 `.st`,交给 `compiler`
-`[[io.input]]` / `[[io.output]]` 采样 I、写回 Q(不创造变量)
-`dt_ms` 交给 VM,推进 `TON` / `TOF` / `CTU`
- 单步、看寄存器和映像、按录制的 `I` 回放
## 边界
- 指令编码见 [`指令与映像.md`](../isa/指令与映像.md)
- ST 解析与链接见 [`编译管线.md`](../compiler/编译管线.md)
- 寄存器执行循环见 [`扫描周期.md`](../vm/扫描周期.md)