c
« Back to VersTracker
Description:
Compile and execute C "scripts" in one go
Type: Formula  |  Latest Version: 0.15.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c compiler scripting developer-tools cli
Install: brew install c
About:
The 'c' tool is a command-line utility that compiles and executes C code snippets on the fly without needing a separate compilation step. It acts as a wrapper around the system C compiler (like GCC or Clang), handling temporary file creation and execution automatically. This significantly streamlines the workflow for quick algorithms, testing small logic blocks, or solving programming challenges in C.
Key Features:
  • One-step compile and execute workflow
  • Automatic handling of temporary files and cleanup
  • Supports passing arguments to the C program
  • Can read code from a file or directly from command-line arguments
Use Cases:
  • Quickly testing C syntax or library functions
  • Solving competitive programming problems
  • Running small C utilities without creating a full project
Alternatives:
  • tcc – Tiny C Compiler is a full compiler that can be used for the same purpose but is a heavier dependency.
  • python – Using Python as a calculator/scratchpad is faster for scripting but lacks C's static typing and low-level performance.
License: MIT
Bottles available for: all
Version History
Detected Version Rev Change Commit