The compiler is a nothing but a source code translator. There are multiple types of compilers according to how they translate source code to another source code.
When a compiler translates high-level source code into low-level source code we call it a traditional compiler.
When the compiler translates low-level source code, we call it decompiler.
When the compiler translates high-level language into another high-level language we call it a transcompiler or transpiler.
Would you like to learn more about compilers and their architecture? Read this article. I have briefly explained how compilers work in this article.
https://medium.com/runtimeerror/what-is-the-compiler-62c595a828c9
Top comments (0)