Sonal
Sonal

Reputation:

Running a gcc execuatble in Iphone simulator or terminal

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

Answers (2)

Patrick Burleson
Patrick Burleson

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

Ramin
Ramin

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

Related Questions