Possible Duplicates:
implementing a compiler in “itself”
Bootstrapping a language
How can you write a compiler in the same language as the language you’re writing that compiler for? Isn’t that sort of recursive?
Edit:
This may be deleted, but otherwise… :
How to bootstrap:
Why to bootstrap:
Generally the first version of the compiler is written in a different language, and then each subsequent version is written in that language and compiled with the older version. Once you’ve compiled version
xwith versionx-1, you can use the newly built versionxto recompile itself, taking advantage of any new optimizations that version introduces; GCC does its releases that way