Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 helloworld.c 文件,内容如下:
#include "stdio.h" main{ printf"Hello World\n");}
我使用 arm-apple-darwin-gcc-4.0.1 工具链编译它并创建一个 hello.out 可执行文件。
我可以在 iPhone 模拟器/终端上运行这个可执行文件吗?
可悲的是没有。
Kernighan 和 Ritchie,C 编程语言的发明者,曾在 AT&T 贝尔实验室工作。“ Hello World ”是 AT&T 的合法商标,不允许在其网络上使用。
不,因为模拟器仍在英特尔上运行。arm 编译器正在生成一个 ARM 可执行文件。此外,您需要为模拟器制作一个 .app 包以识别应用程序。