Comments (1)
1、bug就是一个Node存了一份指向graph的指针,如果使用默认的赋值函数,则新graph的Node内的指针是指向旧的graph
2、Node存了一份指向graph的指针,这样的设计,是C语言留下来的,当时我们会使用container_of这样的操作,通过struct内的成员,计算偏移,去获得该struct对象。在C++版本,我希望保留该设计,但没有发现优雅的实现方式。
3、本lab中不需要使用Node去查找graph这个操作,我们同时只会存在并使用一个graph。如果需要,可以遍历显式地给新graph内的Node的指针修正。
from compiler_project.
Related Issues (20)
- test email
- test email
- test email
- 关于生成的树和参考树的问题 HOT 5
- 关于语法错误提示信息的问题 HOT 1
- 关于变量定义和声明的问题 HOT 1
- 关于assignment3寄存器的问题 HOT 2
- 关于revers_graph变量的用途 HOT 1
- 关于mem2reg的设计思路的猜测 HOT 1
- 活跃分析中的succ HOT 5
- 生成ll文件但是链接错误 HOT 2
- .out文件内容错误的debug方法 HOT 1
- lab5关于配置环境问题 HOT 2
- 关于spill部分的实现 HOT 1
- 关于文件不可识别的问题 HOT 1
- debug可执行文件时出现段错误 HOT 1
- 关于 "llegal input " 提示 HOT 1
- sylib/sylib.o 文件格式问题 HOT 2
- 测试中出现了不要求实现的特性
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler_project.