8cc C Compiler is a small and educational C compiler designed to support the C11 standard while maintaining a compact and easy-to-understand codebase. It was created as a hobby project with the goal of demonstrating how a compiler works internally, making it a valuable resource for learning compiler design. The project includes core components such as a lexer, parser, and preprocessor, allowing users to explore each stage of the compilation process. One of its notable features is its ability to compile itself, showcasing its completeness and serving as a practical example of bootstrapping in compiler development. The code is intentionally written to be concise and readable, making it accessible to developers who want to study compiler internals. Although it lacks advanced optimization features and is not intended for production use, it provides a solid foundation for understanding how C programs are translated into machine code.

Features

  • Support for the C11 programming language standard
  • Includes lexer, parser, and preprocessor components
  • Self-hosting capability by compiling its own source code
  • Designed for readability and educational purposes
  • Compact codebase for studying compiler internals
  • Focus on correctness rather than optimization

Project Samples

Project Activity

See All Activity >

Categories

Compilers

License

MIT License

Follow 8cc C Compiler

8cc C Compiler Web Site

Other Useful Business Software
Estimating Software for Heavy Construction Icon
Estimating Software for Heavy Construction

Developed specifically for civil construction

Built by an estimator, SharpeSoft Estimator is a fully comprehensive software that allows for a more efficient and quicker job-winning bids. Ideal for civil, utility, heavy/highway, grading, excavating, paving, and pipeline contractors, SharpeSoft Estimator offers advanced features such as Item Master, Subcontractor Comparison, Materials Comparison, Grouped Items, Trench Profiler, Haul Calculations, What-if Scenarios, Batch Reports, and more.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of 8cc C Compiler!

Additional Project Details

Operating Systems

Linux

Programming Language

C

Related Categories

C Compilers

Registered

2026-03-25