默认 GCC 架构

发布于 2024-11-14 12:21:15 字数 68 浏览 9 评论 0原文

当没有显式指定-arch选项时,GCC将针对哪种架构进行编译?我可以依赖它作为机器的本机架构吗?

When the -arch option is not explicitly specified, which architecture will GCC compile for? Can I rely on it being the machine's native architecture?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吾性傲以野 2024-11-21 12:21:15

是的,GCC 默认情况下会编译为本机架构。至少这是“默认”行为。

因此,如果您使用默认安装(作为发行版的一部分或通过其包管理器),您可以非常确定 GCC 会“做正确的事情”。

Yes, GCC will, by default, compile to the native architecture. At least this is the 'default' behavior.

So, if you're using a default install (either as part of your distro or via its package manager) you can be pretty sure GCC will "do the right thing."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文