The key parts of most compilers are written in C itself, or in ASM.
The open compilers are well documented, but compilers are generally very complex indeed.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
Bullshit.
from my computer science book;The first compilers were written in assembly language as building a self-hosting compiler is a bootstrapping problem
Since the 1970s it has become common practice to implement a compiler in the language it compiles and C has historically been a popular choice of implementation language.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
>Then what are they written in ? MonkeyLanguage?
You can write the lion's share of a compiler in any language you please. The only real restriction would be the code generator, where you need a language that can write to your target format.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
i didnt say that you couldnt, i said "most compilers" which is true.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601