Apr 29, 2010Compilers are often written in the language of said compiler. For example, a C compiler is typically written in C. How can a C compiler be written in C? [duplicate] - Stack OverflowHow was the first compiler written? - Stack OverflowHow can a language's compiler be written in that language?How was the first C compiler written? - Stack OverflowMore results from stackoverflow.com
Often compilers for computer programming languages are written in their own language. This is less true now that so many compilers are based on complete compiler production systems such as LLVM. LLVM is written in C and C++ but has compilers for a huge portfolio of languages.
A very simple compiler can be written from an assembler and machine code. Once you have a software that is able to translate something into binary instructions, you can use the original compiler to write a more sophisticated one (then use a second further refined one to write a third and so on).
Often compilers for computer programming languages are written in their own language. This is less true now that so many compilers are based on complete compiler production systems such as LLVM. LLVM is written in C and C++ but has compilers for a huge portfolio of languages.