划定 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
+14
View File
@@ -0,0 +1,14 @@
# tests
自动化用例,由顶层 `enable_testing()` 接入 CTest。
可以 `add_test` 调用 `host`,或直接链接 `compiler` + `vm`。样例工程数据按「一份 toml + 若干 `.st`」分子目录存放,不要做成 library。
## 第一版要冻的
- 关键字表与约 20 个样例程序
- 约 20 条指令编码
- 符号表字段:名字、种类、类型、地址、源文件
- 链接错误:重复 `VAR_GLOBAL`、非 GVL 文件写全局、`io.var` 未声明
给人看的最小闭环放 `examples/line1/`,本目录放断言和负例。