划定 CMake 模块目录并补充各层 README。

固定 isa/compiler/vm/host 的职责边界,样例与测试单独成目录。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 16:32:07 +08:00
co-authored by Cursor
parent 368877ae34
commit 2eb2468119
11 changed files with 217 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# host
可执行入口。CMake 目标:`host``EXECUTABLE`),链接 `compiler``vm`
第一版一条命令:读工程 → 编译映像 → 按扫描周期跑。不拆独立的编译器可执行文件。
## 职责
-`project.toml` 和其中的 `.st`,交给 `compiler`
-`[[io.input]]` / `[[io.output]]` 采样 I、写回 Q
-`dt_ms` 交给 VM,推进 `TON` / `TOF` / `CTU`
- 单步、看寄存器和映像、按录制的 `I` 回放
## 不放什么
指令编码(`isa`)、ST 解析与链接(`compiler`)、寄存器执行循环(`vm`)。