人工智能编译器
我想知道是否可以使用人工智能来使编译器变得更好?
如果可能的话,我可以想象的事情 -
- 更具体的错误消息
- 改进编译器优化,以便编译器能够真正理解您想要做什么,并做得更好
如果它可能可能,是否有任何关于这个主题的研究项目?
I was wondering, is it possible to use Artificial Intelligence to make compilers better?
Things I could imagine if it was possible -
- More specific error messages
- Improving compiler optimizations, so the compiler could actually understand what you're trying to do, and do it better
If it is possible, are there any research projects on this subject?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您应该查看 MILEPOST GCC -
You should look at MILEPOST GCC -
优化编译器实际上是一个非常复杂的专家系统,而专家系统是人工最古老的分支之一智力。
An optimizing compiler is actually a very complex expert system and Expert systems is one of the oldest branches of artificial intelligence.
您指的是基因编程之类的东西吗?
http://en.wikipedia.org/wiki/Genetic_programming
Are you refering to something like Genetic Programming?
http://en.wikipedia.org/wiki/Genetic_programming
这确实是一个正在研究的领域。看一下 GCC 的里程碑分支,它依赖于配置文件引导的优化和机器学习。最近针对编译器的科学文献充满了结合使用数据挖掘、机器学习(通过遗传算法或神经网络)以及某些代码模式的更“经典”模式识别的论文。
This is indeed a field being researched. Look at the milepost branch for GCC, which relies on profile-guided optimization and machine learning. The recent scientific literature for compilers is full of papers using a combination of data mining, machine learning (through genetic algorithms or neural networks), and more "classical", pattern-recognition of certain code patterns.