建立四模块 CMake 骨架与 line1 样例。

- compiler / vm 空静态库,host 可执行打印版本
- 顶层解开 add_subdirectory,tests 接入 CTest(host_version 通过)
- examples/line1 落地 project.toml 与三个 .st
- Types.h 注释补饱和规则,与 Doc/isa 一致
- .gitignore 忽略 Doc/会话记录.md
This commit is contained in:
2026-08-19 10:09:27 +08:00
parent ff244888c3
commit 9a35a881d1
14 changed files with 135 additions and 4 deletions
+2
View File
@@ -11,6 +11,8 @@
namespace isa {
namespace types {
// 定宽类型。整数溢出规则:饱和(夹到 INT 最小/最大),
// 由 compiler 与 vm 按同一规则实现,见 Doc/isa/指令与映像.md。
using BOOL = uint8_t;
using INT = int16_t;
using TIME = uint64_t;