- 在.gitignore中添加*.pdb和*.dmp文件类型以忽略调试符号文件 - 重构libs/README.md文档,为各组件添加详细的功能说明和层级结构 - 创建ir2mcode模块的cbuild.toml配置文件,定义依赖关系 - 实现scc_ir2sccf功能,提供MIR到SCCF格式转换的核心接口 - 添加必要的头文件声明和基础实现框架
66 lines
1.0 KiB
Markdown
66 lines
1.0 KiB
Markdown
# lexer
|
|
|
|
> (Lexical Analysis) 词法分析
|
|
|
|
# pproc
|
|
|
|
> (Preprocessor) 预处理器
|
|
|
|
# parser
|
|
|
|
> (Syntax analysis) 语法分析
|
|
|
|
## sema
|
|
|
|
> (Semantic Analysis) 语义分析
|
|
|
|
# ast
|
|
|
|
> (Abstract Syntax Tree) 抽象语法树
|
|
|
|
# ast2ir
|
|
|
|
> 抽象语法树到中间代码
|
|
|
|
# ir
|
|
|
|
> (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)
|