开发者

how do you get gcc (or llvm) to generate ARM code from the OSX command-line?

On OSX 10.6.4 with iPhone SDK and Xcode 3.2.1 installed:

$ gcc foo.c -arch arm

gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin10-gcc-4.2.1':execvp: No such f开发者_如何学运维ile or directory


$ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -O3 -arch armv7 bar.c -c

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜