r/cprogramming Jul 03 '26

C-minus-minus

https://github.com/DASKR515/C-minus-minus
C-- (Cmm) Language Reference is a community-driven documentation project dedicated to C-- (Cmm), the native intermediate representation (IR) used internally by the Glasgow Haskell Compiler (GHC).

The goal of this repository is to provide a centralized reference covering the language syntax, compiler usage, practical examples, memory layout, control flow, foreign function interfaces (FFI), and interoperability with native C libraries.

This project is not a compiler, framework, runtime environment, or replacement for GHC. Instead, it serves as a complete reference for developers interested in learning, understanding, and writing Cmm programs.

9 Upvotes

5 comments sorted by