Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想做个debug版本,先生有没有什么好的建议? #4

Open
EruBrent opened this issue Aug 5, 2017 · 1 comment
Open

想做个debug版本,先生有没有什么好的建议? #4

EruBrent opened this issue Aug 5, 2017 · 1 comment

Comments

@EruBrent
Copy link

EruBrent commented Aug 5, 2017

HI,先生,我想把cbc放到IDE里面一边调试,一边看源码,目前已经在IDE中编译并运行成功了,但是不知道下一步该怎么进行,先生可以给我一些建议和思路吗?谢谢。

@yuanmie
Copy link

yuanmie commented Aug 8, 2017

我是通过书籍《自制编译器》来学习的。Parser是用JavaCC写的,需要了解一下。debug的话按照阶段来,AST的生成,IR的生成,ASM的生成。具体你需要看看cflat/compiler/Compiler.java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants