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, not
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).
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:
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.
3.23:
Fixed random ICS bugs.
3.22:
WARNING! Uninstall app before update! Email me if app won''t work.
Replaced chmod and setExecutable with JNI.
Compatible with Lenovo Thinkpad Tablet.
Fixed some ICS Terminal Emulator bugs.
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
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).
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:
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.
3.23:
Fixed random ICS bugs.
3.22:
WARNING! Uninstall app before update! Email me if app won''t work.
Replaced chmod and setExecutable with JNI.
Compatible with Lenovo Thinkpad Tablet.
Fixed some ICS Terminal Emulator bugs.
Top Download
Minecraft - Pocket Edition
Version: new Version
Rate:
Minecraft - Pocket Edition
Version: 1.16.210.58 Beta [Mod]
Rate:
Easy VPN - Free VPN proxy master, super VPN shield
Version: 2.1.0 [Ad Free]
Rate:
UFO VPN - Best Free VPN Proxy with Unlimited
Version: 3.4.6 [Premium] [Mod]
Rate:
Coalesce - Layers Theme
Version: 13.3
Rate:
Tornado VPN Pro – Premium Paid Security Proxy
Version: 10.69 [Paid]
Rate:
Solo VPN - One Tap Free Proxy
Version: 1.30 [Ad-Free]
Rate:
Free VPN proxy by Snap VPN
Version: 3.2.5 [VIP]
Rate:
Secure VPN - Free VPN Proxy, Best & Fast Shield
Version: 1.4.9 [Premium]
Rate:
GAE Proxy
Version: 0.30.12
Rate:
Latest Update
Photomath - Camera Calculator
Version: 7.5.1 [Plus]
Rate:
Weather Underground
Version: 6.8.1 build 2019062995 [Premium] [Mod]
Rate:
DtcFix - Wifi/Bluetooth Car Fault Code Diagnostic
Version: 3.07 [Premium]
Rate:
MagellanTV Documentaries
Version: 1.1.32 [Subscribed] [Android TV]
Rate:
CK47 Pro 4K video recorder [Holiday sale]
Version: 2021.2
Rate:
Digital One Watch Face
Version: 1.21.03.0518 [Paid] [SAP]
Rate:
Repair System for Android Operating System Problem
Version: 9.6 [Pro]
Rate:
Meteor Test & Grade Your Speed (Unreleased)
Version: 1.30.0-1
Rate:
Google Clock
Version: 6.4 (361080949)
Rate:
Skype Lite - Chat & Video Call
Version: 1.88.76.1 [Mod Lite]
Rate:
Recommend
C4droid (C/C++ compiler)
Version : 5.00
C4droid is a C compiler for Android. Quick manual: I...
C4droid (C/C++ compiler) 's comments