Apple Silicon 的 macOS 库有什么不同吗?

发布于 2025-01-17 08:09:38 字数 291 浏览 2 评论 0原文

库可以是静态的或动态的。据我所知,在 macOS 上它可以是 .a.dylib 文件。

假设我要将它用于旧的(非硅)苹果计算机(即运行 Catalina 的计算机)和具有 M cpu 的新计算机(即运行 Monterey 的计算机)。

每种情况下的二进制文件 .a.dylib 是否不同?

供应商是否应该为苹果硅提供特定的二进制文件?

.so 库在这种情况下如何运行?

A library can be static or dynamic. Respectively, on macOS it can be a .a or a .dylib file, as far as I know.

Let's say I'm going to use it for both, the old (non silicon) apple computers (i.e. those running Catalina) and the new computers with M cpu (i.e. those running Monterey).

Does the binary, the .a or .dylib, is different for each case?

Should the vendor provide a specific binary for apple-silicon?

How the .so libraries go in this context?

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

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

发布评论

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

评论(1

红尘作伴 2025-01-24 08:09:38

是的,它们是不同的,人们通常使用 lipo 将多个架构合并在一起(当它不是构建过程的一部分)。

Yes, they are different, people usually use lipo to merge multiple architectures together (when it is not part of the build process).

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