Reputation:
I have a helloworld.c file, with the contents :
#include "stdio.h"
main{ printf"Hello World\n");}
I compile it using the arm-apple-darwin-gcc-4.0.1 toolchain and create a hello.out executable.
Can i run this execuatble on iPhone Simulator / terminal ?
Upvotes: 1
Views: 575
Reputation: 388
No, because the simulator is still running on Intel. The arm compiler is making an ARM executable. Additionally, you'd need to make a .app bundle for the simulator to recognize the application.
Upvotes: 0
Reputation: 13433
Sadly, no.
Kernighan and Ritchie, inventors of the C programming language used to work at AT&T Bell Labs. "Hello World" is a legal trademark of AT&T and is not allowed on their network.
Upvotes: 2