Interpreter vs Compiler: Difference Between Compiler and Interpreter
Interpreter vs Compiler: Difference Between Compiler and Interpreter
To make programming code understandable and executable by a computer, it needs to be translated into machine language (binary system) using a compiler or interpreter, so that computers can process it.
What is a compiler ?
A compiler is a software tool that translates the entire source code at once into machine language, which the hardware can execute directly, like an .exe file.
If there are errors in the code, the code will not compile, and no output will be provided. Instead, we will encounter a "Compile error."
If there are errors in the code, the code will not compile, and no output will be provided. Instead, we will encounter a "Compile error."
Compiler languages:
- C
- C++
- Java
- Swift
What is a Interpreter ?
An interpreter is a software tool that translates and executes source code line by line into machine language, without producing an output file.


Comments
Post a Comment