I search a lot on internet how to do this, and I found some info from Anastas Stoyanovsky. Most people posted that if you install libgcc on iOS 4 it will crash at boot but this is not true. Here is what you need to do in order to be able to compile and run a C application on iphone: 1. You will need to Jailbreak the iPhone first, search on google for more info. 2. Install OpenSSH from Cydia. 3. C