https://github.com/liulingxi2/finale-interpreted-languages-c-based
Finale Interpreted Language (C-based) Implementation
https://github.com/liulingxi2/finale-interpreted-languages-c-based
compiling
Last synced: 11 months ago
JSON representation
Finale Interpreted Language (C-based) Implementation
- Host: GitHub
- URL: https://github.com/liulingxi2/finale-interpreted-languages-c-based
- Owner: LiuLingXi2
- License: gpl-3.0
- Created: 2024-03-30T14:28:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T13:08:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T09:49:28.679Z (about 1 year ago)
- Topics: compiling
- Language: C++
- Homepage:
- Size: 737 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Finale
运行词法分析器
```cmake
cd build
./rm_build.sh lex
```
## GC
标记-清扫回收算法
分为两个阶段
- 标记:追踪所有活动对象
- 清扫:将未标记的对象(垃圾对象)全部回收
**三色抽象法**
将存活的对象标记为黑色,非存活的对象(垃圾对象)标记为白色,初始态为垃圾对象
回收器开始遍历所有对象时,将正在处理的对象置为灰色,即白色和黑色的中间态,当处理完该对象后,回收器就将其置为黑色以表示保留该对象
## 心得
优化方案
- 使用微服务(ros)
- 多用静态库/动态库