ShellBashCLIGCCLinuxOpen Source
run-gcc: C/C++ Automation CLI
A high-performance Bash CLI utility for developers and competitive programmers that compiles, runs, and auto-tests C/C++ programs against batch test cases with instant diff comparison.
1 min readOct 29, 2026Featured Engineering Project
Motivation & Overview
Competitive programming contests like ICPC and Codeforces require developers to rapidly verify complex algorithmic implementations across dozens of corner cases. Manually compiling with g++, feeding standard input, and visually checking output against expected files is tedious and prone to human error.
run-gcc is an open-source command-line tool built in Bash that streamlines compiling, running, profiling, and testing C and C++ programs in POSIX environments.
Features & Highlights
- Smart Compilation Detection: Automatically chooses
gccorg++based on file extension, applying strict compiler warning flags (-Wall -Wextra -O2 -std=c++17). - Batch Test Execution: Feeds input files (
input*.txt) directly into the executable and calculates execution duration in milliseconds. - Visual Diff Highlighting: Uses colored terminal diff output to pinpoint character-by-character discrepancies between generated output and
expected*.txt. - Memory & Time Profiling: Monitors memory allocation spikes and alerts when execution exceeds time limits (TLE detection).
- Release Channel: Published releases on GitHub up to v1.4.0-beta with over hundreds of community downloads.