关于tiny c编译器的全局寄存器分配器的实现问题
即将到来的夏天,我希望开始写我的硕士论文,我一直在忙着寻找论文主题。我现在有一系列我感兴趣的主题,其中最让我印象深刻的是小型 C 编译器的全局寄存器分配器的实现(图形着色或线性扫描)。
所以我想顺便过来问问你们中是否有人曾经这样做过,这是否是一个可行的硕士论文主题,或者是否太难了。如果您能指导我找到有关此主题的任何优秀文献(我已经有龙书),我也将非常高兴。
upcoming summer i will hopefully start writing my masters thesis and i have been quite busy looking for a thesis subject. I now have a pool of subjects that i am interested in and the one that struck me most is the implementation of a global register allocator for the tiny C compiler (graph coloring or linear scan).
So i wanted to drop by and ask if any of you has ever done this and if it is a feasible subject for a master thesis, or if it is too hard. I would also be very happy if you could direct me to any good literature about this subject(i already have the dragonbook).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你应该问你的导师,而不是一般的互联网!
无论您的论文是什么,您都需要:
搞砸了并且成绩很差并不好玩 重新做一遍这一切并不便宜——或者甚至不可能。
距离论文开始还有几个月的时间。我想说,如果你现在进行练习,你可以轻松地进行全局寄存器分配器。
但无论你的论文主题是什么,你都需要全身心投入。
You should ask your tutor, not the internet in general!
Whatever your thesis, you need:
Its not fun to mess it up and grade poorly. Its not cheap - or perhaps not even possible - to do it all again.
You have a few months before the thesis starts. I'd say that you can lightly do a global reg allocator if you do a practice run now.
But whatever your thesis subject, you need to be committed.
我已经为一种比 C 更容易的语言(针对本科编译器课程)做了一些寄存器分配。这对我来说非常困难,但我没有太多时间。我想说你的项目对于硕士论文来说是可行的。
一本关于编译器设计,特别是优化(包括寄存器分配)的优秀书籍是
高级编译器设计&实施。
I have done some register allocation for a much easier language than C (for an undergraduate compilers course). It was pretty hard for me, but I didn't have much time. I would say your project is feasible for a master thesis.
An excellent book to read for compiler design and especially optimizations (including register allocation) is
Advanced Compiler Design & Implementation.