C4droid (C/C++ compiler) (v. 3.31) Разработано n0n3m4 |
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 n0n3m4@gmail.com.
Keywords: c compiler, c interpreter, c++ compiler, GCC, c/c++ interpreter, c/c++ compiler.
|
[2012-06-07] Bohregard: Love it But I really wish it was formatted for tablets. Other than that its really convenient. |
|
[2012-06-01] Mark: Most excellent :-) Does what it's supposed to, and well. Great way to test out some code when plowing through a new c/c++ book. |
|
[2012-05-22] ABDUL MAJID: C++ program doesn't run ): |
|
[2012-05-20] michael: Great App I like it simple easy to use. But it didn't work the the first time I installed it. I had to uninstall and reinstall before it worked. FOLLOW THE INSTRUCTIONS. One thing wished it had was ncurses supported but other than that fantastic. Sanyo ZIO |
|
[2012-05-12] Jeremiah: Galaxy Nexus Won't work |
|
[2012-05-10] Peter: surprisingly good compiler Works 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 |
|
[2012-05-09] Dan: 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. |
|
[2012-05-06] Ryan: Must have! Finally, I have found a compiler to use on the go. This is a must have app for any serious programmer/student. |
|
[2012-05-05] Buffy: 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. |
|
[2012-05-03] Drifter: 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. |
|
[2012-05-03] Matthew: Great compiler C++ on Android--incredible! |
|
[2012-04-24] perry: Amazing Beginner to CPP an loving it. Well done. |
|
[2012-04-16] Ioan: Need improvements! Editing is a pain! I am sure, more updates will follow! Despite this, I think it's well worth the price! |
|
[2012-04-13] Godwell: Godwell Works very well on samsung galaxy s. I really needed this for my C++. Dont forget to follow installation instructions though. Good app, well done! |
|
[2012-04-12] Terrence: Awesome so far Just downloaded and ran a quick "hello world" program and worked awesomely |
|
[2012-04-07] Spikan: Great app Great C compiler. C++ users will probably want to install the GCC plug-in, but that's free anyway. Best compiler on marketplace. |
|
[2012-04-04] Ben: Great app! Seems to work well so far. Great for learning C/C++ |
|
[2012-04-03] Damion: this app change my life It allowed me to study on my breaks at a job i hate so i could do what i truely wanted best dollar fifty i EVER spent |
|
[2012-03-30] the 4/1/2012 : Great compiler 1 request, could you put some examples on how to use c on the android phone like using the audio output for serial communications or interpreting data, or processing signals , or commanding a car trough the usb port or add links for these on the app. It would be nice if the app opened the first time with a hello world example and have a list of example apps that a user can play with if he is new to c. |
|
[2012-03-27] Weston: Impressive I am impressed and 100% satisfied with this app. More than worth the money. THANK YOU!! |
|
[2012-03-27] muty: Great stuff Great app, exactly what I needed for my transformer. |
|
[2012-03-27] Devin: Awesome Awesome! |
|
[2012-03-26] hukaneren: Wonderful It just werks, the developer is also constantly working on the app and providing bugfixrs. 5 stars for a wonderful app. |
|
[2012-03-26] C Sprucefield: Great one! Java may be good, but nothing beats C for some things .... |
|
[2012-03-26] Notesong: Ummm Why does this suddenly need full internet access? Otherwise nice app but won't be updating. |
|
[2012-03-26] Piotr: A great compiler Exactly what I was looking for, C++ works as well after installing the plugin. |
|
[2012-03-23] J-MAC: Great! Worked on AT&T Galaxy Note |
|
[2012-03-22] 필준: Great!! It is awesome! |
|
[2012-03-21] Ryan: Epic 4g Great app keep up the good work. |
|
[2012-03-19] James: Amazing Works perfect on my Samsung Galaxy Tab 10.1. As a pilot, it's been great be able to bring my tablet while on a trip and get some programming done during long sits at the airport. |
|
[2012-03-19] Merico: works great works on my Motorola triumph, wish there was a scroll mode in which you could scroll through the code without the keyboard coming up constantly and a find feature, other than that, great! |
|
[2012-03-18] Michael: First rate FORTRAN support in the future perhaps? Would be cool. |
|
[2012-03-15] Goten: Works fine. Did everything i wanted it to do so far. iostream works. add <iostream>, not <iostream.h>. |
|
[2012-03-11] Trevor: C++ on my tablet, yeah! I misread the directions and failed to get iostreams working. I contacted the Dev and he responded quickly with the solution, select g++ not gcc in the preferences. Five stars for a good program and support. |
|
[2012-03-11] sapphira: Awesome Brilliant app, prefect for me to learn c with. Few odd little quirks but dev is helpfull and answers questions quickly. Highly recommended. |
|
[2012-03-09] Dim: Amazing. I'm taking a class on c++ right now and this apply is invaluable. But make sure your keyboard can make all the symbols you need: <>{} etc |
|
[2012-03-04] Anthony: Awesome, must have! Must have app for any dev. For command line arguments, long press the run button. |
|
[2012-03-01] Jordan: Great Wish I could change output to sd card though. |
|
[2012-03-01] demdex: Just works Follow the instructions and it works. My instructor was gladly surprised by this app. And it works great can do some simple coding on a long trip |
|
[2012-03-01] fernando: funciona perfecto!!! es lo que necesitaba |
|
[2012-02-25] Josh: Amazing I've been waiting for this for a while now. |
|
[2012-02-24] sindorej: Cpp Wonderful !!! |
|
[2012-02-23] liamv: hello world I've got root and c++. My life is now complete. ps sick of these one star noobs wrecking the rating system becuase they can't follow instructions android should really do something about that.... liam |
|
[2012-02-23] Mr. J: Very useable app for compiling I got this to allow me to take my schoolwork with me. Everything works and the program works well when you follow the simple installation instructions. I didn't the first time and after following the steps it worked great |
|
[2012-02-20] Anonymous: Error menaging file Not working when i try to manage (open,edit,close)file please fix it |
|
[2012-02-18] Namoune: Great application Couldn't ask for more... |
|
[2012-02-17] Don: Am I missing something? Where are the install instructions that explain iostream? I can't find them anywhere... |
|
[2012-02-15] harshit: Amazing Best c++ app...and the develepor is very responsive....runs awesome on galaxy 10.1 |
|
[2012-02-14] Demache: C on the go! Just amazing! As a student learning C, this is pretty convenient. One suggestion is allowing monospace fonts, since it makes formatting and reading easier and allow changing the font size in the editor. I feel it is far too big for my HVGA screen. Otherwise, once I installed the GCC plugin, it runs programs I originally made in Ubuntu perfectly! |
|
[2012-02-09] Nathan: Works great! |
|
[2012-02-06] Roger: text size too small on galaxy nexus it would be the best c app on market if font size prob on galaxy nexus can be solved. |
|
[2012-02-02] Nathan: Excellent Excellent program! My only complaint/request for a fix is that the TextWarrior syntax highlighting has a rather unproductive quirk. if I try to use the hardware keyboard to use symbols (like <), I have to hold down the function key instead of using it normally as a toggle. This problem only happens in the program when I use the TextWarrior option. Anyhow, thanks for the great app! |
|
[2012-02-01] williamd33: Finally got a c compiler C/C++. is my favorite language, glad to have it on my phone |
|
[2012-02-01] minty: Fantastic_ You are awesome! My teacher wanted me to use visual studio for c++ but id rather support the community than line a company's pocket. Works well no problems using a rooted kindle fire with cyanogen 9 ics 4.0.3. Keep up the good work. |
|
[2012-01-27] Dan: Perfect for beginners! I'm a EE major and this is perfect for learning the c language for class, and a great alternate to bringing my dead battery laptop to class! I will have to look into disabling all the auto correct features for the android keyboard while using this program. Galaxy Nexus Verizon |
|
[2012-01-25] cal: Tastes great Great |
|
[2012-01-25] Chad: great developer The app is slightly buggy but this is the best developer on the market.very responsive to bugs and updates quickly. |
|
[2012-01-25] Stefan Lucian: Great It did not work the 1st,2nd and the other times I've tried to make it work. Contacted the developer with my problems and had a quicl response from him. Tried everything he said but still no luck. But he worked on it and the after the latest update I finaly got it working. 5* for the app and 6* for developer. |
|
[2012-01-25] Deep: Great Works perfectly on asus eee pad transformer |
|
[2012-01-22] Alex: An app that does exactly what it says, and properly One can easily be skeptical of the functionality of a mobile compiler. Naturally, it's impossible to expect access to certain utilities and conveniences. However, luxuries of a big name desktop bound compilers aside, this app does exactly what it should. It runs anything from the standard c/c++ library I could need, and doesn't come with any odd quirks to note. While I wouldn't use this to program any large creations, I can say it is the perfect utility for a programmer on the go. |
|
[2012-01-20] Nobody: Amazing app, amazing price I am a programmer with about $25 in my Google Wallet account. What do I do? Buy this brilliant app, of course! Let me explain this to you: Having to carry my heavy, little-battery-life laptop around is a pain, not to mention it takes 5 minutes just to boot. However, my Android tablet is light, easy to carry around, and has 10+ hours of battery life. I am coding an OS from scratch, just a neat little project of mine. I have tried things like touchqode (touchqode is free, but touchqode pro is something around $9.), but it would never open or save my files, leading to hours of frustration. Everything just works in c4droid. This is not only fast, it's smart, too. Syntax highlighting, one of the greatest features (for me) in any IDE, even desktop IDEs, is awesome in c4droid.Not only that, but the GCC plugin is absolutely awesome. If you have a buck fifty able to be spent on an app, GET THIS ONE!!!!!! |
|
[2012-01-18] Kaz: So far so good App works pretty good. Only problem I noticed is that rand() does not work. Make SURE to follow instructions or it will not work! |
|
[2012-01-12] Thundercat: Brilliant! gets() bug fixed quickly. Works a dream now. Fantastic app. |
|
[2012-01-09] SteveF: Awesome Great app. Now we just need some android native API linktime libraries. Cant stand having to use Eclipse and java. |
|
[2012-01-09] Anders: Awesome Printf("This app is awesome!"); ! |
|
[2012-01-03] Jerami: Great App! #installed on HTC MyTouch Slide 3G (Android 2.2.1) #not rooted int main() { Works great. I love that you don't need internet like Source Lair, also good app though. At first had problems with compiling and running code. I uninstalled and reinstalled both app and plugin and now works great. return 0; } |
|
[2011-12-27] Norbi: Norbi Perfect! |
|
[2011-12-22] James: Works after RTFM moment Couldn't get it to work (missing iostream error) after installing so I decided to read the instructions. I forgot to set a compiler in preferences! Doh! Now it works perfectly fine, no complaints. I am able to compile my code using g++ without any issues (besides the ones that I create). |
|
[2011-12-15] Mayur: Must buy!! Great app. Finally works with c, iostream error still occurs though. Glad I brought it, I'll use it for c only till dev fixes iostream bug Using Galaxy s2 |
|
[2011-11-27] Zs: Awesome, I could run all my homeworks without any problems!. Y U NO GIVE IT A TRY? :d |
|
[2011-11-26] Richard: Bad Instructions/Support Could not compile with iostream, even with g++ preferences. Tried to get refund, couldn't. Developer did not respond to my email. |
|
[2011-11-25] Reisyd: Awesome! I'm C++ developer and sometimes I want verify some ideas and algorithms but I have no computer near. With this app I can write/compile/run simple C/C++ apps anywhere! Thanks n0n3m4. |
|
[2011-11-23] sourabh: Very prompt replys from the author. Gr8 job! |
|
[2011-11-21] NonesuchPlace: Works like a charm on the Transformer: Works like a charm, compiled my default test program in a matter of seconds. Would like to see some other interpreters and compilers for fun, but I am happy with this program as it is. |
|
[2011-11-19] Ron: C/C+ + very nice i like it. its awesome to have development tools on android. |
|
[2011-11-18] Tony: Amazing. Outstanding support Keep reading all. This is an amazing product. It did not work right on my phone. I emailed dev. He responed fast and with instruction and fixed bug.A+ |
|
[2011-11-17] SBKch: Average. I found only this compiler, so it's the best one ;), but there is much left to do. For now only basic functionality. |
|
[2011-11-17] Sbcontt: Love it. |
|
[2011-11-15] Meena: great very basic UI, but it gets the job done for writing simple programs. works as advertised |
|
[2011-11-14] pm: C++ compiler, ide. Very good C++users: run gcc plugin app after installation ! Then you will install gcc compiler from there! |
|
[2011-11-13] Kevin: Sweeeet! Would rate 5 stars, but can't #include <conio.h>, and a couple of other minor amnoyances. |
|
[2011-11-10] Cian: Seems good.. Anyone know a decent keyboard to use with easy access to programming symbols such as (),{}and ;? |
|
[2011-11-10] Ph3rny: Great except autocorrect Does exactly what I want though I'd like to have more control over autocorrect in this app. |
|
[2011-11-07] Dmitry: Good! 1) need make/project file to compile projects consisting of more than one file. 2) when open/save, need file open dialog. 3) Add ver. & home page info |
|
[2011-11-01] Jeremy: sweeet!! Samsung Galaxy S2 |
|
[2011-11-01] the 11/6/2011 Good app. Just need to know how to input C++ symbols that my HTC evo does not have on keyb. |
|
[2011-10-28] James: awesome! works great. would be nice to be able to watch variables and step through. |
|
[2011-10-12] Luciano: I like Good ide for a mobile, hope a debugger is added soon :-) |
|
[2011-10-11] sihjee: It's always executing some old binary. How to fix it? |
|
[2011-10-07] kewlguy: Works better than I expected. For C++ be sure to also install the GCC plug in. HTC Evo and HTC Evo 3D |
|
[2011-10-07] Jeffrey: Works well on Bionic. Please add TextWarrior options to use no line wrapping and for setting Tab width. Compiler options (C99) needed as well. |
|
[2011-09-27] Tyler: Nice So far it's great! Very nice to be able to do cpp homework using my tablet. I'd love it if the syntax highlighting was a little darker in contrast. |
|
[2011-09-26] vicky: Its awesome. Good work. Works fine on my galaxy Ace |
|
[2011-09-26] Thanawat: very good app. only one problem is I cannot use iostream.h. |
|
[2011-09-26] Thomas: Works great. Would be helpful if error messages from the compiler stayed visible for longer - they disappear in a second. Also tabs would be useful. |
|
[2011-09-19] Victor: Good Good app, works okay save 4 the gcc plugin |
|
[2011-09-16] Chaseshaw: Changing my review to 1 star. Doesn't actually do c++ only c. No iostream, no string. Can I have my money back? |
|
[2011-09-13] Matthew: Samsung Galaxy Ace and Archos70. Installed and works flawlessly. Great for working through my "C Primer Plus" book. Thanks for a great app! :) |
|
|