Lesson 12 Bootstrapping
Lesson 12 Bootstrapping
Bootstrapping
The notion of implementing a language, by means of using (part of) that language’s own
implementation.
Notation: T-diagram
Diagram Purpose:
How do we get it ?
Possibility#1:
Possibility#2:
Write the Pascal compiler in some other language L, that is already implemented on M. Then,
compile the compiler.
But, this will probably involve too much work.
Possibility # 3: First, implement P, a subset of Pascal. Then, write the desired compiler in P, and
compile it.
Step 1:
Now P is implemented.
Another example:
Possibility #4:
Step 2:
Many compilers undergo a long chain of bootstrapping steps. For example, XPL (a dialect of
PL/I), was written first in Algol, then in XPL, and ported to a B5500 and then an IBM 360. Eight
bootstraping steps were required.