哪里有一些创建 GCC 前端的好文档?
我的任务是为 IT 学生设计一些半年和全年的大学项目,由于希望以前从未做过(而且我怀有某种虐待狂倾向),其中之一是向 GCC 套件添加 BCPL 前端编译器。
我在哪里可以找到以下一项或多项:
- 一些很好的参考类型文档,描述如何将这样一个庞然大物添加到 GCC?
- 对于简单语言来说这样做的一个例子。
- 该过程的任何指南。
I've been tasked to come up with some half-year and full-year university projects for IT students and, due to the fact that it's hopefully never been done before (and also that I harbor certain sadistic tendencies), one of them is adding a BCPL front-end compiler to the GCC suite.
Where can I locate one or more of:
- some good reference-type documentation describing how to add such a beast to GCC?
- an example of doing so, for a simple language.
- any guides to the process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Go-lang 的 gccgo 是 gcc 的 Go 前端。这是公告。我对 Go 的研究还不够多,无法评论它的复杂性或简单性。我希望对于准备为 gcc 编写前端的人来说,gccgo 应该是一个不错的参考和/或示例。
Go-lang's gccgo is a Go front end for gcc. Here is the announcement. I have not studied enough of Go to comment about its complexity or simplicity. I hope for someone prepared to write a front end for gcc, gccgo should be a decent reference and/or example.
https://www.tldp.org/HOWTO/GCC-Frontend-HOWTO。 html 已经很古老了。
https://www.linuxjournal.com/article/7884 也很旧了。
https://thinkingeek.com/2016/01/05 /tiny-gcc-front-part-1/ 和 https://thinkingeek.com/2016/01/06/tiny-gcc-front-part-2/ 更新得多。
我没有读过其中任何一个。
https://www.tldp.org/HOWTO/GCC-Frontend-HOWTO.html is very old.
https://www.linuxjournal.com/article/7884 is also very old.
https://thinkingeek.com/2016/01/05/tiny-gcc-front-part-1/ and https://thinkingeek.com/2016/01/06/tiny-gcc-front-part-2/ are much more recent.
I haven't read any of them.