remix logo

Hacker Remix

Show HN: Optimizing compiler for a large subset of C, written in Rust

6 points by xqb64 1 day ago | 1 comment

Hello.

I wanted to share what I had been working on for the past couple of months or so. It's an optimizing C compiler for a large subset of the C programming language written in Rust. It's basically a Rust implementation of the C compiler from Nora Sandler's book[1].

It has been a great educational exercise and I wholeheartedly recommend it to everyone.

[1]: https://nostarch.com/writing-c-compiler

lutusp 1 day ago

It's my hope that people will take the hint: "Wait ... if Rust is a better way to compile C than C itself, maybe I should learn Rust."