views:

316

answers:

4

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 ?

+1  A: 

yes, with great difficulty.

Brad Smith
+1  A: 

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.

Ramin
A: 

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.

Patrick Burleson
thanks ! i figured out the same :)
A: 

http://eagos.blogsite.org/blog/?p=184

bakra