logoalt Hacker News

Compiler bootstrapping depends on more than you might think

7 points • by gavinhoward • last Wednesday at 4:13 PM • 1 comment • view on HN

Comments

nanolith • today at 5:06 AM

This is why I've made it a point with my compilers to always include a minimum subset bootstrap compiler written in C, which can compile the compiler to C via transpilation. The only dependencies are a C compiler toolchain and a POSIX compatible libc.

This does make the compiler slightly more annoying to extend, but that makes bootstrapping support for a new system easier. User experience is important.