News for hackers. Stuff that matters.
Re:Running the "Reflections on Trusting Trust" Compiler by dzdt on Thursday October 26, 2023 @11:39AM (#38027057)
The C4 compiler [https://github.com/rswier/c4] is a self-hosting compiler for a subset of the C programming language that produces executable x86 code. You can understand and audit this code in a couple of hours (its 528 lines).

It could be an interesting exercise to bootstrap up from something like this to a working linux environment based solely on source code compilation : no binary inputs. Of course a full linux environment has way too much source code for one person or team to audit, but at least it rules out RoTT style binary compiler contamination.

Re:Running the "Reflections on Trusting Trust" Compiler by tedunangst on Thursday October 26, 2023 @03:08PM (#38030334)
It's an interpreter.