This app was mentioned in 9 comments, with an average of 1.67 upvotes
From a cursory google search I found this app which could be useful to you:
https://play.google.com/store/apps/details?id=com.n0n3m4.droidc
Name: C4droid
Features:
C4droid is a user-friendly (but powerful) C/C++ IDE + C/C++ compiler for Android.
Basic features:
For C++ specifically?
My first real language that I learned was C++, and I wrote it exclusively on my Note 4 with a Bluetooth keyboard. The IDE I used was C4Droid. It was great. It isn't super intelligent, but was still very usable.
One of my first programming memories with it was sitting in front of a campfire, in the middle of nowhere, with my Note 4 and keyboard on my lap, plugging away. My phone case has a kickstand on the back, so it functioned Iike a mini-laptop.
Two of the best ones I can recommend are C4droid and AIDE. AIDE is the more feature-rich of the two. I started programming with C4droid - it's not a revolutionary mobile IDE, but it certainly does the job for practicing little snippets on the go! Neither have the sophisticated code (auto) formatting options, but AIDE does provide some good auto-complete suggestions - at least in Java, I've not used it for C++ as much as C4droid.
You can use C4Droid to compile and run C and C++. There's a plugin for running SDL/SDL2/NativeActivity/Qt/SFML/FLTK/Allegro apps. You can even build an APK of your program.
You could also use online alternatives, but I prefer the offline option myself.
it is probably not what you are looking for, but there is an app on the playstore that is called "c4droid", and it allows you to write android apps driectly in C and it comes with a demo program that is called "cube", if i remember correctly..
https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en_US
does that qualify as a game engine?
btw, it costs about three dollars, but it is really nice.. you can write a full android app directly on your phone.. better get a bluetooth keyboard..
C4Droid uses C and C++ GNU compilers for Android with an IDE to examine source code. You have to download the compilers separate.. I runs C code I wrote in 1987 before the ANSI standard existed. https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en
But you can get one if you want to. link
Well, obviously the IDEs will be smaller and simpler..
they do not pretend to compete with an IDE for a PC,
what they do give, is the ability to develop and compile, on your smartphone, without needing a PC in addition,
and without needing to install Google's 4GBs IDE.
There are many nice options actually (but again, have reasonable expectiation due to the screensize and lack of mouse most of the time):
Check out C4droid, C# Shell, Tasker, Automate.
Probably there are more good ones, but those are the 4 that I know.
Each costs 2-3$, and they're all worth it.
i dont think it is about horsepower. i can compile an apk on a linux pc with 1core while my phone has like 4 or 8. isnt there any android compiler that runs on arm? and even if it is about horsepower....i have all the time in the world for it.
did more research and found this:
>Compiling applications does not take considerable processing power in general. I did it on my 286 all the time. The OP wants gcc on his phone.
>Look for C4droid (C/C++ compiler) in the Google market. Then install the "GCC plugin for C4droid" from the market. (These do cost a couple dollars).
>From the market description: "It's a plugin for c4droid, that allows it to compile C and C++ source code using GCC. It contains gcc 4.7 with Bionic (Android libc). Source code hadn't been modified, so you can compile it yourself, if you want."
>https://play.google.com/store/apps/details?id=com.n0n3m4.droidc https://play.google.com/store/apps/details?id=com.n0n3m4.gcc4droid
>Here's another package that includes gcc from the market: "Debian Kit" - https://play.google.com/store/apps/details?id=org.dyndns.sven_ola.debian_kit
that debian kit isnt in playstore anymore.
i will try this out:
https://play.google.com/store/apps/details?id=com.pdaxrom.cctools
..its free.