Skip to content

搞英语 → 看世界

翻译英文优质信息和名人推特

Menu
  • 首页
  • 作者列表
  • 独立博客
  • 专业媒体
  • 名人推特
  • 邮件列表
  • 关于本站
Menu

Linux 6.16 添加“X86_NATIVE_CPU”选项以优化内核构建

Posted on 2025-05-28

构建_64.png

unixbhaskar 分享了一份来自 Phoronix 的报告:X86_NATIVE_CPU Kconfig 构建时选项已合并到 Linux 6.16 合并窗口,这是一种在 AMD 和 Intel 处理器上强制执行“-march=native”编译器行为的简便方法,可优化内核构建以适应系统本地 CPU 架构/系列。对于希望在 AMD/Intel x86_64 处理器上构建 Linux 内核的用户,可以轻松启用新的 CONFIG_X86_NATIVE_CPU 选项,以便在本地内核构建中设置该编译器选项。由于 Linux 内核在旧版编译器上存在编译器错误,在使用 Clang 19 或更高版本编译 Linux x86_64 内核时,如果使用 GCC 或 LLVM Clang 编译 Linux x86_64 内核,则可以使用 CONFIG_X86_NATIVE_CPU 选项。除了为 Linux 内核 C 代码设置“-march=native”编译器选项外,启用这个新的 Kconfig 构建选项还会为内核的 Rust 代码设置“-Ctarget-cpu=native”。unixbhaskar 评论道:“这看起来很有趣。如果详细的基准测试显示选择该选项后性能有所提升,那么发行版可能会开始采用它。”

twitter_icon_large.png facebook_icon_large.png

在 Slashdot 上阅读更多内容。

原文: https://linux.slashdot.org/story/25/05/27/2223207/linux-616-adds-x86nativecpu-option-to-optimize-your-kernel-build?utm_source=rss1.0mainlinkanon&utm_medium=feed

本站文章系自动翻译,站长会周期检查,如果有不当内容,请点此留言,非常感谢。
  • Abhinav
  • Abigail Pain
  • Adam Fortuna
  • Alberto Gallego
  • Alex Wlchan
  • Answer.AI
  • Arne Bahlo
  • Ben Carlson
  • Ben Kuhn
  • Bert Hubert
  • Bits about Money
  • Brian Krebs
  • ByteByteGo
  • Chip Huyen
  • Chips and Cheese
  • Christopher Butler
  • Colin Percival
  • Cool Infographics
  • Dan Sinker
  • David Walsh
  • Dmitry Dolzhenko
  • Dustin Curtis
  • eighty twenty
  • Elad Gil
  • Ellie Huxtable
  • Ethan Marcotte
  • Exponential View
  • FAIL Blog
  • Founder Weekly
  • Geoffrey Huntley
  • Geoffrey Litt
  • Greg Mankiw
  • Henrique Dias
  • Hypercritical
  • IEEE Spectrum
  • Investment Talk
  • Jaz
  • Jeff Geerling
  • Jonas Hietala
  • Josh Comeau
  • Lenny Rachitsky
  • Liz Danzico
  • Lou Plummer
  • Luke Wroblewski
  • Matt Baer
  • Matt Stoller
  • Matthias Endler
  • Mert Bulan
  • Mostly metrics
  • News Letter
  • NextDraft
  • Non_Interactive
  • Not Boring
  • One Useful Thing
  • Phil Eaton
  • Product Market Fit
  • Readwise
  • ReedyBear
  • Robert Heaton
  • Rohit Patel
  • Ruben Schade
  • Sage Economics
  • Sam Altman
  • Sam Rose
  • selfh.st
  • Shtetl-Optimized
  • Simon schreibt
  • Slashdot
  • Small Good Things
  • Taylor Troesh
  • Telegram Blog
  • The Macro Compass
  • The Pomp Letter
  • thesephist
  • Thinking Deep & Wide
  • Tim Kellogg
  • Understanding AI
  • 英文媒体
  • 英文推特
  • 英文独立博客
©2025 搞英语 → 看世界 | Design: Newspaperly WordPress Theme