iPhone开发--Xcode中的ld64和-ld_classic是什么意思

如下内容,翻译自官方论坛文档

文档地址如下:

https://developer.apple.com/forums/thread/715385

关键内容摘抄如下:

A static library is an archive of one or more object files. It has the extension .a. Use ar, libtool, and ranlib to inspect and
manipulate these archives. The static linker, or just the linker, runs
at build time. It combines various inputs into a single output.
Typically these inputs are object files, static libraries, dynamic
libraries, and various configuration items. The output is most
commonly a Mach-O image, although it's also possible to output an
object file. The linker may also output metadata, such as a link map.
The linker has seen three major implementations: ld --- This dates from
the dawn of Mac OS X. ld64 --- This was a rewrite started in the 2005
timeframe. Eventually it replaced ld completely. If you type ld, you
get ld64. ld_prime --- This was introduced with Xcode 15. This isn't a
separate tool. Rather, ld now supports the -ld_classic and -ld_new
options to select a specific implementation. Note During the Xcode 15
beta cycle these options were -ld64 and -ld_prime. I continue to use
those names because the definition of new changes over time (some of
us still think of ld64 as the new linker ;--).

翻译

静态库是由一个或多个目标文件组成的存档,它使用 .a 作为文件扩展名。可以使用 ar、libtool 和 ranlib来检查和操作这些存档。

静态链接器(static linker),或者直接叫链接器(linker),在构建时运行。它将各种输入组合成一个输出。这些输入通常是对象文件、静态库、动态库以及各种配置项。输出最常见的是Mach-O 映像,不过也可以输出一个对象文件。链接器还可以输出元数据,例如link map。

链接器经历了三个主要实现:

ld ------ 这可以追溯到 Mac OS X 开始的时期。

ld64 ------ 这是一个 2005 年时段开始的重写。最终它完全取代了 ld。如果输入 ld,你获得的就是 ld64。

ld_prime ------ 这是随着 Xcode 15 引入的。这不是一个单独的工具。相反,ld 现在支持 -ld_classic 和

-ld_new 选项来选择特定实现。

注意:在 Xcode 15 beta 阶段,这些选项是 -ld64 和-ld_prime。我继续使用这些名称,因为新旧的定义会随时间变化(我们中的一些人仍然认为 ld64 是新的链接器;-))。

相关推荐
2501_9151063213 小时前
iOS 抓不到包怎么办?从 HTTPS 代理排查到 TCP 数据流捕获的全链路解决方案
android·tcp/ip·ios·小程序·https·uni-app·iphone
游戏开发爱好者813 小时前
APP上架苹果应用商店经验教训与注意事项
android·ios·小程序·https·uni-app·iphone·webview
Digitally17 小时前
如何从iPhone切换到Android
android·ios·iphone
2501_9160074717 小时前
苹果应用商店上架的系统逻辑,从产品开发到使用 开心上架 上架IPA 交付审核流程
android·ios·小程序·https·uni-app·iphone·webview
2501_9160088918 小时前
Python抓包HTTPS详解:Wireshark、Fiddler、Charles等工具使用教程
python·ios·小程序·https·uni-app·wireshark·iphone
360智汇云18 小时前
智汇云API市场:大模型流式语音识别
人工智能·语音识别·xcode
2501_9160088919 小时前
uni-app 上架到 App Store 的项目流程,构建、打包与使用开心上架(Appuploader)上传
android·ios·小程序·https·uni-app·iphone·webview
00后程序员张19 小时前
怎么在 iOS 上架 App,从构建端到审核端的全流程协作解析
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_9159184119 小时前
iOS 开发者工具全景指南,构建高效开发、调试与性能优化的多工具工作体系
android·ios·性能优化·小程序·uni-app·iphone·webview
询问QQ688238862 天前
大子刊nc复现:‘在连续介质中束缚态驱动下的最大和可调谐手征光学响应的平面手征超表面‘——涉及...
xcode