Cosmopolitan Libc makes C a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS with the best possible performance and the tiniest footprint imaginable. Cosmopolitan can be compiled from source on any Linux distro. GNU make needs to be installed beforehand. This is a freestanding hermetic repository that bootstraps using a vendored static gcc9 executable. No further dependencies are required.

Features

  • Runs natively on Linux, Mac, Windows, FreeBSD, OpenBSD, and NetBSD
  • Makes C a build-once run-anywhere language
  • Doesn't need an interpreter or virtual machine
  • Reconfigures stock GCC and Clang to output a POSIX-approved polyglot format
  • Cosmopolitan can be compiled from source on any Linux distro
  • No further dependencies are required

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

ISC License

Follow Cosmopolitan

Cosmopolitan Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Cosmopolitan!

Additional Project Details

Operating Systems

FreeBSD, Linux, Mac, NetBSD, OpenBSD, Windows

Programming Language

C

Related Categories

C Libraries

Registered

2021-09-14