Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

53
  • 59
    @X.L.Ant: many (maybe even most) C compilers are written in C. Commented Dec 22, 2014 at 11:07
  • 34
    @Neil: C++ doesn't compile to anything. C++ is a language. Languages don't compile, compilers do. Commented Dec 22, 2014 at 11:07
  • 12
    @X.L.Ant: I don't think so. But the first Oberon compiler, for example, was written in Oberon and then hand-translated (which is a form of compilation, I guess) to Fortran. This compiler was then compiled with a Fortran compiler, the resulting Oberon compiler was used to compile the Oberon compiler and from that point on, the previous version of the compiler was used to compile the next one. Commented Dec 22, 2014 at 11:10
  • 19
    @Neil It's not really that pedantic. It's accurate: a language is a spec. It may be implemented as a compiler, as an interpreter, a hybrid, etc. You can write a compiler for a language, but the compiler is not the language. I guess the issue gets confusing because there are languages for which there is no spec written anywhere except for its reference implementation. But even in those cases, I'd argue the language (i.e. the ideal the author had in his/her mind) is different from the implementation/compiler/interpreter/etc. Commented Dec 22, 2014 at 12:54
  • 26
    Downvoters: this is a pretty reasonable question with a clear answer. That the answer is "no" is no reason to downvote. Instead, consider answering and explaining. Commented Dec 22, 2014 at 12:57