Always read instructions carefully.- #1 note on a survival manual, Yann Martel Life of Pi
On Android, everything is an app.- mzt
Shell for Android is an app too. Install Terminal IDE (210MB) from the app store. Yes, this is not built-in, not default, also with limited use: vi, javac, gcc, git, ssh etc. It runs without root permission. After the installation, switch on its ugly but complete keyboard to get the full function use.
Install gcc
Under Terminal IDE, gcc is paralleled by terminal-gcc, which is not installed by default (due to the volume of gcc). If you go to help file from its main menu, you will see a series of tutorials explaining how to start making the best use of it. Here I just quote the part on gcc. On any of its terminal window (there are 4),
# cat `which install_gcc` # install_gcc
After installation, use the following command to compile,
# terminal-gcc foo.c -o foo.o