feat(ir2mcode): 添加中间代码到统一输出格式转换模块

- 在.gitignore中添加*.pdb和*.dmp文件类型以忽略调试符号文件
- 重构libs/README.md文档,为各组件添加详细的功能说明和层级结构
- 创建ir2mcode模块的cbuild.toml配置文件,定义依赖关系
- 实现scc_ir2sccf功能,提供MIR到SCCF格式转换的核心接口
- 添加必要的头文件声明和基础实现框架
This commit is contained in:
zzy
2026-04-26 18:22:08 +08:00
parent f57ba9bd31
commit d7ac5fd30b
7 changed files with 186 additions and 13 deletions

View File

@@ -1,28 +1,65 @@
# lexer
lexer 词法分析
> (Lexical Analysis) 词法分析
pproc 预处理器
# pproc
parser 语法分析 sema 语义分析
> (Preprocessor) 预处理器
ast 抽象语法树
# parser
ir 中间代码标识
> (Syntax analysis) 语法分析
- ast2ir
## sema
- ir2mcode
> (Semantic Analysis) 语义分析
opt 优化器
# ast
asm 汇编器
> (Abstract Syntax Tree) 抽象语法树
mcode 机器码
# ast2ir
sccf 统一输出格式
> 抽象语法树到中间代码
target 目标平台支持
# ir
- pe
> (Intermediate Representation) 中间代码标识
## cfg
> (Control Flow Graph) 控制流图
## hir
> (High-Level Intermediate Representation) 高级中间代码标识
## lir
> (Low-Level Intermediate Representation) 低级中间代码标识
## mir
> (Machine Intermediate Representation) 机器中间代码标识
# ir2mcode
> 中间代码到机器码
<!-- asm 汇编器 -->
# mcode
> (Machine Code) 机器码
# sccf
> 统一输出格式
# target
> 目标平台支持
## Windows Portable Executable Format
[Windows Portable Executable Format](https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#archive-library-file-format)
[中文文档](https://learn.microsoft.com/zh-cn/windows/win32/debug/pe-format#archive-library-file-format)