双可执行落地:STCompiler 与 BytecodeExecutor。

- STCompiler 入口在 compiler/src/main.cpp,链 compiler+isa
- host/ 改名 executor/,BytecodeExecutor 链 vm+isa 不链 compiler
- compiler/vm 补 PUBLIC 链 isa;顶层加入 executor
- CTest:版本冒烟 2 例 + isa_roundtrip(89 断言),3/3 通过
This commit is contained in:
2026-08-19 14:40:44 +08:00
parent c378411637
commit dd7f7bcba7
9 changed files with 290 additions and 16 deletions
+6 -3
View File
@@ -2,9 +2,12 @@
cmake_minimum_required(VERSION 3.21)
# 工程名、版本号、工程描述
project(Host
project(Executor
VERSION 0.1
DESCRIPTION "可执行入口:编译并跑扫描周期")
DESCRIPTION "字节码执行器:加载 .stb + sidecar 跑扫描周期")
add_executable(host
add_executable(BytecodeExecutor
./src/main.cpp)
# 只链 vm + isa,不链 compiler
target_link_libraries(BytecodeExecutor PRIVATE vm)
+3 -3
View File
@@ -1,5 +1,5 @@
# host
# executor
可执行入口。CMake 目标:`host``EXECUTABLE`),链接 `compiler``vm`
BytecodeExecutor 模块:可执行入口。CMake 目标:`BytecodeExecutor``EXECUTABLE`),链接 `vm``isa`**不链 `compiler`**
职责与边界见 [`doc/host/宿主入口.md`](../doc/host/宿主入口.md)。
职责与边界见 [`doc/executor/执行器入口.md`](../doc/executor/执行器入口.md)。
+3 -2
View File
@@ -1,6 +1,7 @@
/**
* @file main.cpp
* @brief host 可执行入口
* @brief BytecodeExecutor 可执行入口
* @author
* @date 2026-08-19
*/
@@ -9,6 +10,6 @@
int main(int argc, char** argv) {
(void)argc;
(void)argv;
std::printf("Stator host 0.1\n");
std::printf("BytecodeExecutor 0.1\n");
return 0;
}