← Derle

C and C++, compiled on your phone.

Derle’s terminal is a real Linux userland, so gcc is the compiler you know. Write C or C++ in the editor, compile it on the device and run the binary in the same terminal.

Free to try. Derle Pro is optional.

The Derle terminal on Android at a shell prompt, after running a script
A Python file open in the Derle code editor, with syntax highlighting and line numbers

A real compiler, not an online runner

gcc, unmodified

A Linux userland with a package manager, where gcc does exactly what it does on a server.

Runs on the device

Your program is compiled and run on the phone, not sent to a remote machine.

An editor beside the terminal

Tabs, syntax highlighting, completion and find-in-file, with several terminal sessions open at once.

No root

The userland runs under PRoot, so the phone does not need to be rooted.

From a source file to a running program

  1. Create a C/C++ project

    Open Engineering Mode and start a C or C++ project.

  2. Write the code

    Use the editor, or ask the assistant to write or fix it.

  3. Compile and run

    Run gcc in the terminal and start the binary. Long builds keep going in the background.

Questions

Is there a C++ compiler for Android?
Yes. Derle runs a real Linux userland on the phone, with gcc available in the terminal. You compile and run C and C++ programs on the device itself.
Does my phone need to be rooted?
No. The Linux userland runs under PRoot, which does not need root.
Does it work offline?
The editor, the terminal and compiling run on the device. Installing the compiler the first time needs an internet connection, and so does the AI assistant.