About Us
Our Team
Our Impact
FAQs
News
Contact Us
Corporate Programs
C4droid (C/C++ compiler)
n0n3m4
C4droid (C/C++ compiler)
* *
* *
* *
* *
* *
$1.50
Grades: 9 to 12
Downloads: 10,000-50,000
Num. Ratings: 293

Description

C4droid is a C compiler for Android.

Quick manual:
If you have found a bug or app is not working, email me.

If app crashes on start, check that enough internal memory is available (not 64Kb).

Root is not required, but if you have enough internal memory OR you have rooted your device, you can get C++ support, read further. (some comments about "iostream not found" are fake, their authors just didn't follow installation instructions).

Updating from lower than 3.0 versions:
WARNING! Uninstall this app before update! Else app will crash. It's well known Android bug (details: http://code.google.com/p/android/issues/detail?id=1227 ).
You have been warned!

Result of compilation (binary) is placed in "/data/data/com.n0n3m4.droidc/files/temp", because sdcard doesn't have permission for execution by default.

If you have "Illegal instruction" error, using internal compiler (TCC), install GCC plugin, GCC supports softfloat (by default).

Long click save button to "save as", long click run to run with arguments.

C4droid already has almost full C language support, so you don't need to wait when it will be added.
You can to write your own applications on the Android phone, and run them. This app uses TCC and uClibc, so it has full support of ANSI C and some support of ISO C99. C4droid can be used for educational purposes or to practice in C language.
Some components of C4droid are LGPL-licensed. You can download used source code of TCC and uClibc on their websites (But TCC had been modified by me, so I recommend to email me to get modified source) C4droid includes Android Terminal Emulator so you can to run your application comfortably.

To get C++ support you need:
0) Install C4droid
1) Install GCC plugin for C4droid from Android Market.
2) Launch GCC plugin for C4droid and press "install to internal memory" (or to external if you have root rights)
3) Select G++ compiler in C4droid preferences.
4) Use "iostream", not "iostream.h"
5) Add "using namespace std;" to your program (before int main)

WARNING! All Telechips and MediaTek based devices are unsupported (Android phones/tablets from china), because of the incompatiblity with EABI. Devices without VFP (VIA) are partially unsupported too (floating point operations).
C4droid will check license via the Internet.

Report bugs at [email protected].

Keywords: c compiler, c interpreter, c++ compiler, GCC, c/c++ interpreter, c/c++ compiler.

Recent changes:
Email me if app won't work after update.
3.31:
Fixed Samsung keyboard bug.
Updated uClibc, so now pthreads are supported.
3.30:
Finally fixed ICS terminal emulator bugs.
Fixed battery drain.
Added INTERNET permission for sockets support without root rights.
3.27:
Terminal Emulator bugfix.
3.26:
File dialog bugfix.
3.25:
TextWarrior bugfix.
Font size is configurable now.
Programs can be runned with root rights.
3.24:
WARNING! Uninstall app before update!
Fixed TCC cast issue.

Content rating: Everyone
Screenshots
Comments
Log in to rate this app!
* *
* *
* *
*
*
by Jeremiah
- 05/12/2012
Galaxy NexusWon't work

* *
* *
* *
* *
* *
by Peter
- 05/10/2012
surprisingly good compilerWorks really well on Motorola Fire. GCC plugin takes lots of phone memory, but default TCC compiler is fine. If you have any interest in C programming you must install this App. Thank you n0n3m4

* *
* *
* *
* *
* *
by Dan
- 05/09/2012
Works Great!installed it on an Asus TF300 and initially ran into the iostream not found error. I went back and read through the instructions and got it working easily enough.

* *
* *
* *
* *
*
by serdar
- 05/07/2012
NiceCould u add tool bar for these r ()+-/*&#%@;:'.'"!?}{><_=~[]|\1234567890 And pls add queue number

* *
* *
* *
* *
* *
by Ryan
- 05/06/2012
Must have!Finally, I have found a compiler to use on the go. This is a must have app for any serious programmer/student.

* *
* *
* *
* *
*
by Buffy
- 05/05/2012
Awesome compiler...Works wonderfully on the Acer A500. C++ works great with the gcc plugin. Just one complaint, needs the ability to do "saveas" with files. Other than that, awesome compiler. Thank you.

* *
* *
* *
* *
* *
by Matthew
- 05/03/2012
Great compilerC++ on Android--incredible!

* *
* *
* *
* *
* *
by Drifter
- 05/03/2012
Great!Absolutely amazing! I've recently started learning C++, and I'm always thinking of new things/solutions/ideas but I never have access to a computer at those time. This is going to be a great help.

* *
* *
* *
* *
* *
by perry
- 04/24/2012
AmazingBeginner to CPP an loving it. Well done.

* *
* *
* *
*
*
by Ioan
- 04/15/2012
Need improvements!Editing is a pain! I am sure, more updates will follow! Despite this, I think it's well worth the price!