Tag:compile
All the articles with the tag "compile".
reduce shift conflict demo
Posted on:November 10, 2023 at 03:00 PM新建一个`co.g4` 文件 ``` grammar co; stat: |expr ';' |'(' ')' ';' ; expr: '(' ')' ; ID: [a-zA
lr parser
Posted on:March 27, 2022 at 04:09 PM### 文法介绍 文法 (`Grammar`) 由四部分组成:$(V_f , V_n , P , S)$ $V_f$: 描述的是终结符 $V_n$: 描述的是非终结符 P : 产生式 S
llvm
Posted on:October 18, 2021 at 12:41 PM一个语言的前端主要是设计出来的 #### 相关阅读 - https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html
a language to machine code
Posted on:April 8, 2020 at 09:09 AM计算机语言是什么? 我感觉是一个数学系统 编译成机器码是什么? 是绑定了动作 // lex parse 类型系统 ssa asm elf abi ``` keyword :
ssa optimistic
Posted on:March 16, 2020 at 04:45 PM## 优化的本质是什么呢? 比如ssa,是减少死代码,通过常量传播和常量折叠减少运行时的计算 比如sql的逻辑优化: 就是一个逻辑下推 通过变换减少读io ## 编译的一般步骤: lex
编译原理
Posted on:February 20, 2020 at 02:24 PM## 什么是编译? 一个从一种状态集转换为另外一个状态集的过程 ## 什么是优化? ## 什么是类型,类型就是集合的约束 一个类型就是一个集合 ## 什么是隐式转换 就是一个集合被编译器材*