Hi all! Today we are going to see about Compiled and Interpreted language. As a developers we should know about these. Here I planned to share some most important things about those.
What is Compiled Language?
A compiled language is a programming language that is generally compiled and not interpreted. It is one where the program, once compiled, is expressed in the instructions of the target machine; this machine code is undecipherable by humans.
Simple Meaning:
Checks and converts everything before running- A compiler checks the whole program at once and translates it into machine language (0s and 1s) before running. So it will allow you to type full program, finally it will show errors if it's exist. In case if your 50 lines code has 1 error in 20th line, compiler don't show the output.
Think like(More explanation):
You write a story in English. A translator translates the full story into Tamil. Then someone reads the whole Tamil version.
Example Languages:
- C
- C++
- Java (partly)
What is Interpreted Language:
An interpreted language is a programming language that is generally interpreted, without compiling a program into machine instructions. It is one where the instructions are not directly executed by the target machine, but instead, read and executed by some other program.
Simple Meaning:
Checks and runs one line at a time- An interpreter reads and runs your program line by line. This means it checks your code line by line, if in case it occurred any errors in 5th line in your 50 lines code, while you run the code, it shows output for that first 4 line code, and warn the 5th line error.
Think like(More explanation):
You write a story in English. A translator reads each line and speaks it in Tamil immediately.
Example Languages:
- Python
- JavaScript
- Ruby
So that's it. I gave some basic info only here. In the future, I can water the roots of this blog. Will see in my next blog.
Reference:https://www.geeksforgeeks.org/compiler-design/difference-between-compiled-and-interpreted-language/
Top comments (0)