Running gcc-execuatble in simulator or Iphone terminal

I have a file helloworld.c with the content:

#include "stdio.h"
main{ printf"Hello World\n");}

      

I will compile it with toolchain arm-apple-darwin-gcc-4.0.1 and create hello.out executable.

Is it possible to run this execuatble on iPhone Simulator / terminal?

+1


a source to share


2 answers


Unfortunately not.



Kernighan and Ritchie, inventors of the C programming language, used to work at AT&T Bell Labs. "Hello World" is a legitimate trademark of AT&T and is not permitted on their network.

+1


a source


No, because the simulator is still running on Intel. The arm compiler makes an ARM executable. Also, you will need to make an .app package for the simulator to recognize the application.



0


a source







All Articles