Compiler Bootstrapping

The cluster discusses the challenges and techniques of bootstrapping compilers, including the need for an existing compiler to build a new one, historical examples from languages like Rust, GCC, Zig, and Go, and methods like using assembly or previous versions.

📉 Falling 0.5x Programming Languages
1,601
Comments
19
Years Active
5
Top Authors
#8293
Topic ID

Activity Over Time

2008
1
2009
3
2010
19
2011
20
2012
28
2013
55
2014
50
2015
88
2016
89
2017
105
2018
82
2019
96
2020
108
2021
185
2022
214
2023
132
2024
157
2025
164
2026
5

Keywords

MINIX e.g ML oxcaml.org EUR FWIW AKA OS LLVM github.com compiler bootstrapping bootstrap rust language compiling bootstrapped compile ocaml cross

Sample Comments

frumplestlatz Nov 2, 2025 View on HN

How are you bootstrapping a modern C compiler without an existing C/C++ compiler and linker?

ivanjermakov Jul 17, 2025 View on HN

Reminds me of compiler bootstrapping. If you only have the source code of, let's say, Rust and want to build it you first need to have a Rust compiler of a previous version. And for that you need another compiler. Then you reach times when rustc was written in OCaml. And know what? Now you need to build OCaml compiler!Other way is to build a stripped down version of rustc only capable of compiling latest rustc, e.g. using <a href="https://github.com/dtolnay/bootstrap"

pjmlp Jan 8, 2019 View on HN

Any plans to actually bootstrap the compiler?

toomanybeersies Aug 29, 2016 View on HN

AKA Bootstrapping: https://en.wikipedia.org/wiki/Bootstrapping_(compilers)

ValentaTomas Apr 4, 2023 View on HN

Related https://en.wikipedia.org/wiki/Bootstrapping_(compilers)

qppo Jan 26, 2021 View on HN

Compilers seem to manage just fine with bootstrapping themselves. The trick is not to overwrite yourself

Nicksil Apr 7, 2021 View on HN

Bootstrappinghttps://en.wikipedia.org/wiki/Bootstrapping_(compilers)

hrjet Jul 22, 2014 View on HN

Bootstrapping any tool is going to look that way. To compile gcc you need a C compiler don't you?

doppioandante Jul 2, 2017 View on HN

How was this compiler bootstrapped?

habosa May 22, 2013 View on HN

I understand bootstrapping, but at some point there has to exist some outside compiler in another language or a hand-compiled version of this otherwise the chicken and egg chain never ends.