【发布时间】:2013-11-06 17:28:23
【问题描述】:
这似乎是一个非常具体的问题,但中心思想却相当广泛。
我有一个简单的 C 语言 hello world 控制台应用程序。我已在 Mac OS X 上使用以下命令对其进行编译:
$ export PLATFORM=/Developer/Platforms/iPhoneOS.platform
$ $PLATFORM/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -o hello hello.c -isysroot $PLATFORM/Developer/SDKs/iPhoneOS5.0.sdk/
它编译成功但给出了这个警告:
ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
现在,当我运行lipo -info hello 时,我得到Non-fat file: hello is architecture: arm
具体是哪个arm,具体如何编译成armv7?
【问题讨论】:
-
“它是哪个特定的手臂” - 它?什么”?你想在 iOS 设备上运行它吗?
标签: iphone c arm mach-o llvm-gcc