A minimal web-based compiler explorer for C code, built with Python (Flask). This app supports compilation of user-submitted C code using either gcc or clang, and provides output at different stages like preprocessing, assembly, LLVM IR, or binary object code.
- 🧠 Live compilation of C code via web UI
- 🛠️ Supports:
- Preprocessing (
-E) - Assembly output (
-S) - LLVM IR (
clang) - Binary object files (
-c)
- Preprocessing (
- 🔄 Output returned as plain text or hex-encoded binary
- 🔐 Server runs locally by default (localhost only)
- Python 3.12+
- Flask
gccand/orclang(must be installed on your system)
pip install -r requirements.txtpython app.pyThis starts the Flask server at http://127.0.0.1:8080
Open: http://127.0.0.1:8080. Use the interface to write C code, choose a compiler and mode, and view the results.
- Object files are not executed or linked; binary output is returned as a hex string.
- Compilation errors are shown in the output pane.
- I wrote this on a Linux box, and it only compiles to ELF format. If you need PE check out
https://godbolt.org. They also have a vast range of coding languages and other options for you to choose from.