用 Clang 构建内核

综合技术 2017-09-28

在 Linux Plumbers Conference 会议上,Google 的内核开发者 Greg Kroah-Hartman 和 Nick Desaulniers 介绍了
用 Clang 构建内核

的进展。Desaulniers 称今天的 Android 用户空间都用 Clang 构建,Google 想要减少它需要支持的工具链数量,至少在目前用 Clang 构建内核主要对 Google 有利,但有理由相信这对更广泛的社区同样有利。Clang 提供了一组与 GCC 不同的警告,更少的 bug 显然对所有内核用户都有利。Clang 还能提高额外的工具,如控制流分析,link-time optimization, profile-guided optimization。用不同的编译器构建代码也有助于筛选出依赖于未定义行为的代码。Greg Kroah-Hartman 称竞争对每个人都有利,过去五年 GCC 引入的新特性都是与 LLVM/Clang 竞争的结果。他希望 Linux 内核也有竞争对手。

您可能感兴趣的

Google Pays $1.1B To Acquire HTC’s Pixel Tea... Under a $1.1 billion collaboration agreement announced today, HTC employees who helped develop Google's Pixel smartphone will soon become official Goo...
Report: Google ready to launch $31 Android Go (Ore... Google reportedly partnering with mulitple Indian companies to bring Android Oreo (Go edition) phones to market First entry-level smartpho...
Bugcrowd unmasks (sort of) hackers to cast vulnera... Asking the crowd for help in fixing security problems is going mainstream.Microsoft, Facebook, and other tech giants have offered "bug bounties"—cash...
Google Pixel新品发布会 在刚刚过去的9月,苹果交出的答卷并不令人满意,iPhone 8/8 Plus首发没有以往排队的热闹场面了,而TrueDepth Camera、异形OLED面板等元件极大地限制了iPhone X的出货量。时间迈入10月,Google也将于今天晚上24点交出自己的答卷,除了已浮出水面的第二代旗舰Pixe...
Microsoft relaunches its news app to take on Googl... Remember MSN.com? It’s still around – and Microsoft is trying to bring it back by relaunching its mobile apps with a new moniker. Available forA...