{"id":84750,"date":"2023-12-15T17:41:08","date_gmt":"2023-12-15T09:41:08","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=84750"},"modified":"2023-12-15T17:41:08","modified_gmt":"2023-12-15T09:41:08","slug":"clang-to-kernel","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/clang-to-kernel.html","title":{"rendered":"\u4e0d\u8d70\u5bfb\u5e38\u8def\u8def\uff1a\u8c37\u6b4c\u4f7f\u7528 Clang \u6784\u5efa\u5185\u6838"},"content":{"rendered":"
<\/p>\n
\u5728 Linux Plumbers Conference \u4f1a\u8bae\u4e0a\uff0cGoogle \u7684\u5185\u6838\u5f00\u53d1\u8005 Greg Kroah-Hartman \u548c Nick Desaulniers \u4ecb\u7ecd\u4e86\u7528 Clang \u6784\u5efa\u5185\u6838\u7684\u8fdb\u5c55\u3002<\/p>\n
Desaulniers \u79f0\u4eca\u5929\u7684 Android \u7528\u6237\u7a7a\u95f4\u90fd\u7528 Clang \u6784\u5efa\uff0cGoogle \u60f3\u8981\u51cf\u5c11\u5b83\u9700\u8981\u652f\u6301\u7684\u5de5\u5177\u94fe\u6570\u91cf\uff0c\u81f3\u5c11\u5728\u76ee\u524d\u7528 Clang \u6784\u5efa\u5185\u6838\u4e3b\u8981\u5bf9 Google \u6709\u5229\uff0c\u4f46\u6709\u7406\u7531\u76f8\u4fe1\u8fd9\u5bf9\u66f4\u5e7f\u6cdb\u7684\u793e\u533a\u540c\u6837\u6709\u5229\u3002<\/p>\n
Clang \u63d0\u4f9b\u4e86\u4e00\u7ec4\u4e0e GCC \u4e0d\u540c\u7684\u8b66\u544a\uff0c\u66f4\u5c11\u7684 bug \u663e\u7136\u5bf9\u6240\u6709\u5185\u6838\u7528\u6237\u90fd\u6709\u5229\u3002Clang \u8fd8\u80fd\u63d0\u9ad8\u989d\u5916\u7684\u5de5\u5177\uff0c\u5982\u63a7\u5236\u6d41\u5206\u6790\uff0clink-time optimization\uff0c profile-guided optimization\u3002\u7528\u4e0d\u540c\u7684\u7f16\u8bd1\u5668\u6784\u5efa\u4ee3\u7801\u4e5f\u6709\u52a9\u4e8e\u7b5b\u9009\u51fa\u4f9d\u8d56\u4e8e\u672a\u5b9a\u4e49\u884c\u4e3a\u7684\u4ee3\u7801\u3002<\/p>\n
Greg Kroah-Hartman \u79f0\u7ade\u4e89\u5bf9\u6bcf\u4e2a\u4eba\u90fd\u6709\u5229\uff0c\u8fc7\u53bb\u4e94\u5e74 GCC \u5f15\u5165\u7684\u65b0\u7279\u6027\u90fd\u662f\u4e0e LLVM\/Clang \u7ade\u4e89\u7684\u7ed3\u679c\u3002\u4ed6\u5e0c\u671b Linux \u5185\u6838\u4e5f\u6709\u7ade\u4e89\u5bf9\u624b\u3002<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.solidot.org\/story?sid=54012<\/a><\/p>\n