欢迎访问 生活随笔!

凯发k8官方网

当前位置: 凯发k8官方网 > 运维知识 > linux >内容正文

linux

llvm每日谈之二十三 llvm/clang编译linux内核资料 -凯发k8官方网

发布时间:2025/1/21 linux 21 豆豆
凯发k8官方网 收集整理的这篇文章主要介绍了 llvm每日谈之二十三 llvm/clang编译linux内核资料 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

作者:史宁宁(snsn1984)

之前有朋友问到这个问题,是否有使用llvm/clang编译linux内核的,随手找了一些相关资料,在这里贴出来,与大家共享。


网址:http://llvm.linuxfoundation.org

项目简介:

this project aims to fully build the linux kernel using clang which is the c front end for the llvm compiler infrastructure project. together clang and llvm have many positive attributes and features which many developers and system integrators would like to take advantage of when developing and deploying the linux kernel as a part of their own projects.

the hope is that this project will help reduce duplicate work, as well as concentrate, and accelerate efforts around this subject matter in order to allow linux kernel developers, and system integrators to have the choice of a clang compiled linux kernel. the goal is for this project to be a testing/proving ground for these updates and to get patches that make this possible upstream to their respective projects.

the llvmlinux project consolidates the work of the lll-project, the pax team, and mark charlebois' work on the arm kernel.

there have been several presentations and articles on this topic if you wish to learn more about the reasons for this project.

currently the work is centred around the arm, x86, x86_64, and mips architectures but contributions to support other architectures are welcome. patches accepted!

interested parties will be holding a bi-weekly google hangout to discuss project status and goals.


最新进展情况,从新闻稿中可以看出:

features you won't find in the linux 4.9 mainline kernelwritten by michael larabel in linux kernel on 19 october 2016 at 07:18 am edt. 17 comments

...

llvm clang building - the mainline kernel still can't build cleanly under the llvm clang compiler. the llvmlinux project slowed down a lot but hopefully developers will get back to working on this support in the not too distant future. 

...

新闻链接:http://www.phoronix.com/scan.php?page=news_item&px=linux-4.9-stuff-not-mainline

至少到2016年10月19日,该新闻发布的时候,还无法正常支持主线的内核编译。同时,也号召有兴趣的朋友们积极参与该项目。


另外,该项目的邮件列表为: llvmlinux@lists.linuxfoundation.org.


总结

以上是凯发k8官方网为你收集整理的llvm每日谈之二十三 llvm/clang编译linux内核资料的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发k8官方网网站内容还不错,欢迎将凯发k8官方网推荐给好友。

网站地图