I would like to study C using iPad. Just simple programs. So, is there a C compiler for iPad?
|
A cursory look at the iTunes Store reveals CodeToGo (iTunes Store Link). Since you cannot compile on the iPad itself, this app leverages a web service (IDEOne) in order to run the program and return the results to your device. The app is USD$3 and a universal binary (iPhone+iPad). The web service appears to be free, if not just a little ugly :). |
|||
|
|
|
If you're willing to jailbreak, the answer is yes. You can install GCC (the same open-source C compiler included with XCode) on your iPad. The process is a bit complicated, but it's certainly possible. You can find instructions here. The instructions I've linked only mention the iPhone, but the same process should work on the iPad. If you're not willing to jailbreak, then the solution VxJasonxV suggested might be your only option. |
|||||
|
|
If you have an internet connection, you could use codepad.org. They let you compile many different languages from code you paste into a web form. Supports a lot of formats and has some nice sharing features. |
|||
|
|
|
Apple does not allow running any executable (machine) code other than that approved by the App store review process to run on an iPad. It might be possible to port a C interpreter to the iPad, as long as it was disabled from downloading C code. |
|||
|
|
|
The are no C compiler App Store apps for any iOS device due to a clause in the iOS Developer Program License Agreement which basically says that:
That is taken wikipedia. I believe I can't link to the agreement for some reason or another. If you just want an editor you might look at Project Edit. |
|||||
|
|
I have stumbled upon this C/C++ compiler; not sure what it's worth though but it does look like a simple-ish C/C++ compiler for iPhone/iPad. My guess is that it does not actually compile to iOS binary code, but to some sort of bytecode that the program then interprets. That's the only way it could get by Apple QA. |
|||
|
|
|
Here are the C compiler options available via Cydia, along with some non-standard repositories that provide additional tools and packages that are interesting for anyone trying to make an iPad as functional as a computer...
|
||||
|
|

