关于tiny c编译器的全局寄存器分配器的实现问题

发布于 2024-08-19 05:13:50 字数 194 浏览 3 评论 0原文

即将到来的夏天,我希望开始写我的硕士论文,我一直在忙着寻找论文主题。我现在有一系列我感兴趣的主题,其中最让我印象深刻的是小型 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

荒路情人 2024-08-26 05:13:50

你应该问你的导师,而不是一般的互联网!

无论您的论文是什么,您都需要:

  1. 一位好的导师,
  2. 与您的导师成为最好的朋友
    • 做到这一点的一种方法是拍马屁并询问他们对这样一个关键决定的看法
  3. 这必须很有趣 - 这是一个重要的动力 - 但它也必须是你要擅长的事情 。

搞砸了并且成绩很差并不好玩 重新做一遍这一切并不便宜——或者甚至不可能。

距离论文开始还有几个月的时间。我想说,如果你现在进行练习,你可以轻松地进行全局寄存器分配器。

但无论你的论文主题是什么,你都需要全身心投入。

You should ask your tutor, not the internet in general!

Whatever your thesis, you need:

  1. a good tutor
  2. to be best buddies with your tutor
    • and one way to do that is sucking up and asking them their opinion on such a critical decision
  3. it must be fun - that's an important motivator - but it must also be something you're going to excel at

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.

南巷近海 2024-08-26 05:13:50

我已经为一种比 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文