4 ms·
Lots of compilers are bootstrapped; GCC builds itself with GCC, GHC (the Haskell compiler) is written in Haskell and builds itself. These are just two popular
by perlgeek 15y ago
Lots of compilers are bootstrapped; GCC builds itself with GCC, GHC (the Haskell compiler) is written in Haskell and builds itself.
These are just two popular examples, but my experience is that most serious compilers for general purpose languages are bootstrapped.
(I'm working on a Perl 6 compiler that is mostly written in Perl 6. It's real fun!)
- simcop2387 15y agoI'm curious what back end you're using for that project. Offhand I'd assume LLVM but I know there's others that might make a good choice too.
- perlgeek 15y agoThe current backend is the parrot VM (LLVM would be a bit too "low level"), though we plan CLR (.NET/mono) and JVM backends.