CS450 Compiler Design
57
Bootstrapping
Java-->JVM
Java
Same language!
Q: What can we do with a compiler written in itself? Is that useful at all?
•By implementing the compiler in (a subset of) its own language, we become less dependent on the target platform => more portable implementation.
•But… “chicken and egg problem”? How can we get around that?
=> BOOTSTRAPPING: requires some work to make the first “egg”.
There are many possible variations on how to bootstrap a compiler written in its own language.