Compiler Engineering in Practice – Part 1: What Is a Compiler?
chisophugis.github.io·3d·
Discuss: Hacker News
🏗️Compiler Archaeology
Preview
Report Post

“Compiler Engineering in Practice” is a blog series intended to pass on wisdom that seemingly every seasoned compiler developer knows, but is not systematically written down in any textbook or online resource. Some (but not much) prior experience with compilers is needed.

What is a compiler?

The first and most important question is “what is a compiler?”. In short, a compiler is:

  • a translator that translates between two different languages, where those languages represent a description of a computation, and
  • the behavior of the computation in the output language must “match” the behavior of the computation in the input language (more on this below).

For example, an input language can be C, and the output can be x86 assembly. By this definition, an assembler is also a co…

Similar Posts

Loading similar posts...