In this post, I’ll dive into the journey of translating a high-level language into a machine code ready for execution. I will show the different betwen Compiler vs. Interpreter: Know The Difference And When To Use Each Of Them.
I still remember a discussion with a colleague of mine in which I said, “That’s the transpiler,” and he replied: “Trans…what?”
If you have never heard that name, you’re not alone. As developers, we all get used to writing code in a high-level language that humans can understand. However, computers can only understand a program written in a binary system known as machine code.
To speak to a computer in its non-human language, we came up with two solutions: interpreters and compilers. Ironically, most of us know very little about them, although they belong to our daily coding life.
In this post, I’ll dive into the journey of translating a high-level language into a machine code ready for execution. I’ll focus on the inner working of the two key players in this game — the compiler and the interpreter — and break down the related concepts.