Files
compiler-explorer/examples
hkalbasiandMatt Godbolt 9b47e07d14 Add co2 language (#8842)
This PR adds [CO2](https://github.com/hkalbasi/co2) which is a language
backward compatible with C, with some Rust interop features that
compiles to Rust's MIR.

I added two compiler `co2rustc` and `co2cc`, and a tool `co2miri` which
is Miri for CO2. I added `co2cc` under C compilers, to make it possible
to view diff of assembly for a C code compiled with CO2 and clang or
gcc. `co2cc` is a CO2 frontend which accepts gcc-like flags, and can (or
at least should) compile almost every ISO compatible C23 code.
`co2rustc` accepts Rust like flags, and added under a new `CO2`
language.

Tested locally and it seems to work.

I need some help in setting up artifacts (which, if I understand
correctly, needs to happen in `infra` or `compiler-workflows`). I make
an artifact `co2-multicall` in my CI, which needs to get symlinked in
`co2cc`, `co2rustc` and `co2miri`, and it needs to run a simple project
with miri to create the miri sysroot. If you show me a similar project,
I will do the job.

Disclaimer: Written partially by LLM.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2026-07-02 18:26:35 +01:00
..
…
2025-04-24 09:47:16 +02:00
…
2025-10-22 09:04:20 -05:00
2026-07-02 18:26:35 +01:00
…
…
…
…
2024-09-30 22:19:55 -05:00
2025-07-29 16:37:54 -05:00
…
…
…
2025-10-07 14:55:38 -05:00
…
…
2026-06-02 12:19:29 -05:00
…
…
…
2025-05-11 16:07:40 -05:00
2025-02-19 10:41:42 -06:00
…
2026-01-25 16:50:12 -05:00
…
…
2026-06-19 11:31:32 -04:00
2024-02-12 21:50:33 -06:00
2025-02-24 09:38:13 -06:00
…
…
…
…
2024-11-26 16:38:40 -06:00
2024-06-10 21:29:03 -05:00
2024-10-22 06:37:40 -05:00
…