阶段5-4:executor --sidecar 显式指定 I/O 绑定文件(缺省同名推导不变,向后兼容)
This commit is contained in:
@@ -7,7 +7,7 @@ BytecodeExecutor 模块:可执行入口。CMake 目标:`BytecodeExecutor`(
|
||||
## 用法
|
||||
|
||||
```text
|
||||
BytecodeExecutor <name>.stb [--cycles N] [--replay <file>] [--step]
|
||||
BytecodeExecutor <name>.stb [--cycles N] [--replay <file>] [--step] [--sidecar <path>]
|
||||
```
|
||||
|
||||
- `--cycles N`:跑 N 个周期(缺省 10)
|
||||
@@ -18,7 +18,7 @@ BytecodeExecutor <name>.stb [--cycles N] [--replay <file>] [--step]
|
||||
### sidecar 定位(当前 + 计划)
|
||||
|
||||
- **当前(已实现)**:sidecar 路径按「同名替换扩展名」推导——`<name>.stb` → `<name>.runtime.toml`。依据:sidecar 是编译产物的配对文件,同名约束由 STCompiler 写侧强制,约定即可。
|
||||
- **计划(未实现)**:加可选参数 `--sidecar <path>` 显式指定 I/O 绑定文件。适用场景:同一程序多套接线配置并存(厂内/现场不同 sidecar)、接线文件与 `.stb` 不同目录。缺省行为**不变**(未指定时回退到同名推导),向后兼容。
|
||||
- **已实现**:`--sidecar <path>` 显式指定 I/O 绑定文件。适用场景:同一程序多套接线配置并存(厂内/现场不同 sidecar)、接线文件与 `.stb` 不同目录。缺省行为**不变**(未指定时回退到同名推导),向后兼容。
|
||||
|
||||
## 职责
|
||||
|
||||
|
||||
Reference in New Issue
Block a user