Programming, coding, app development
Sep 10th, 2012, 1:36 pm
C4droid (C/C++ compiler) v3.56
Requirements: Android version 2.1 and higher
Overview: C4droid is a C compiler for Android.
Image

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)

Tested devices:
Android Emulator 1.6, QVGA
Android Emulator 2.2, WVGA
Acer Liquid 2.2, WVGA
Herotab C8, WVGA

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).

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

Email me if app won't work after update.
You need to uninstall app if updating from version lower than 3.35!
3.56:
Fixed bugs, support more devices for external memory installation.
Added an option to change TextWarrior syntax highlighting theme.
Long click open button for recent files menu.
3.49:
Updated UI.
Added experimental Qt support.
Added Makefile (and qmake) support.
Moved all unpack code from GCC plugin to C4droid.
Added examples to GCC plugin.

This app has NO advertisements

More Info:
Code: Select allhttps://play.google.com/store/apps/details?id=com.n0n3m4.droidc

Download Instructions:
http://www.HenchFile.com/s4sr7exhan6w

Mirror:
https://rapidgator.net/file/40827758/c356.apk.html
Sep 10th, 2012, 1:36 pm
Sep 13th, 2012, 8:13 am
This installs well, but asks me to install GCC even though GCC is already installed. I tried uninstalling this and related files and then installed this first allowing it to request the installation of GCC. This went well as far as the installation process, but would not recognise that GCC was installed - like it couldn't see it.

What should I do, please?

(ZTE Blade with 2.1)
Sep 13th, 2012, 8:13 am
Sep 14th, 2012, 3:09 pm
This release is dead in the water, doesn't work. :-(

The app itself is only £1.86, and has very good feedback. So, it seems safe to go with. :)
Sep 14th, 2012, 3:09 pm
Sep 17th, 2012, 1:51 pm
Please guys someone upload the latest version 3.57 because this version deosnt working
Sep 17th, 2012, 1:51 pm