7 ms·
There are many, here's a simple Google search: https://github.com/jyn514/saltwater https://github.com/jyn514/saltwater https://github.com/ClementTsang/rustcc
by rubymamis 7mo ago
There are many, here's a simple Google search:
https://github.com/jyn514/saltwater https://github.com/jyn514/saltwater
https://github.com/ClementTsang/rustcc https://github.com/ClementTsang/rustcc
https://github.com/maekawatoshiki/rucc https://github.com/maekawatoshiki/rucc
- Philpax 7mo agoLook at what those compilers are capable of compiling and to which targets, and compare it to what this compiler can do. Those are wonderful, and I have nothing but respect for them, but they aren't going to be compiling the Linux kernel.
- rubymamis 7mo agoI just did a quick Google search only on GitHub, maybe there are better ones out there on the internet?
- jsnell 7mo agoDid you actually look at these? > https://github.com/jyn514/saltwater https://github.com/jyn514/saltwater This is just a frontend. It uses Cranelift as the backend. It's missing some fairly basic language features like bitfields and variadic functions. And if I'm reading the documentation right, it requires all the source code to be in a single file... > https://github.com/ClementTsang/rustcc https://github.com/ClementTsang/rustcc This will compile basically no real-world code. The only supported data type is "int". > https://github.com/maekawatoshiki/rucc https://github.com/maekawatoshiki/rucc This is just a frontend. It uses LLVM as the backend.
- chilipepperhott 7mo agoI found this one too: https://github.com/PhilippRados/wrecc https://github.com/PhilippRados/wrecc
- Philpax 7mo agoA genuinely impressive effort, but alas, still missing some pretty critical features (const, floating point, bools, inline, anonymous structs in function args).
- luke5441 7mo agoAnother one: https://github.com/rustcoreutils/posixutils-rs/tree/main/cc https://github.com/rustcoreutils/posixutils-rs/tree/main/cc
- Philpax 7mo agoCan't compile the Linux kernel, and ironically, also partly written by Claude.