- 12.10 重写为两条命令:STCompiler 编译出 .stb + sidecar,BytecodeExecutor 加载执行 - 12.0 删独立 stc.exe,12.13 依赖方向改为 STCompiler/BytecodeExecutor - 指令与映像.md 新增「映像文件(.stb)与 sidecar」节,I/O 绑定不进映像 - host/ 改名 executor/,宿主入口.md 重写为执行器入口.md - README / tests / examples / isa README 同步
15 lines
627 B
Markdown
15 lines
627 B
Markdown
# tests
|
|
|
|
自动化用例,由顶层 `enable_testing()` 接入 CTest。
|
|
|
|
可以 `add_test` 调 `STCompiler` / `BytecodeExecutor`(编译→执行管线),或直接链接 `compiler` + `vm` 做单元断言。样例工程数据按「一份 toml + 若干 `.st`」分子目录存放,不要做成 library。
|
|
|
|
## 第一版要冻的
|
|
|
|
- 关键字表与约 20 个样例程序
|
|
- 约 20 条指令编码
|
|
- 符号表字段:名字、种类、类型、地址、源文件
|
|
- 链接错误:重复 `VAR_GLOBAL`、非 GVL 文件写全局、`io.var` 未声明
|
|
|
|
给人看的最小闭环放 `examples/line1/`,本目录放断言和负例。
|