gpt4 book ai didi

ios - 了解 lipo 工具的架构结果

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:07:07 25 4
gpt4 key购买 nike

我为armv7构建了一个Xcode项目,armv7s arm64。我在生成的 .a 文件上运行了 lipo -info:

Architectures in the fat file: Release-iphoneos/libhlsl2glsl.a are: armv7 (cputype (12) cpusubtype (11)) (cputype (16777228) cpusubtype (0))

这是在告诉我什么?

最佳答案

它显示cputypecpusubtype 是您使用函数sysctlsyctlbyname 得到的。请参阅 mach/machine.h 以了解定义的值:

对于cputype,12是ARM CPU

#define CPU_TYPE_ARM ((cpu_type_t) 12)

16777228(又名 0x100000C)用于 ARM64 CPU:CPU_TYPE_ARM | CPU_ARCH_ABI64

#define CPU_ARCH_ABI64  0x01000000 /* 64 bit ABI */

对于 cpusubtype :

#define CPU_SUBTYPE_ARM_V7S ((cpu_subtype_t) 11) /* Swift */

#define CPU_SUBTYPE_ARM_ALL ((cpu_subtype_t) 0)

关于ios - 了解 lipo 工具的架构结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22257772/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com