我如何从大小上检查迪利布的内容?
从手动创建的Xcode项目转变为CMake-Inerated Xcode C ++项目之后,我编译的二进制 dylib 大小已显着增长:从约35  mb到约53  mb。
我可以在Xcode项目中比较的所有编译和链接设置看起来几乎相同(包括与不包括调试符号,优化级别等)。我想知道是否有任何工具可以检查Dylib内容 - 首先是什么占用大小。
After moving from a manually created Xcode project to a CMake-generated Xcode C++ project, my compiled binary DYLIB size has grown significantly: from about 35 MB to about 53 MB.
All the compilation and linking settings I could compare in Xcode projects look pretty much the same (including vs. not including debug symbols, optimization levels, etc.). I wonder if there are any tools to inspect DYLIB contents - what occupies size in the first place.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我个人会选择 nm 工具。您可以迭代地检查任何迪利布文件,或者只打印所有内容:
I would personally go with nm tool. You can inspect any DYLIB file iteratively, section-by-section or just print everything: