X



Home>Tutorial>

Interpreted Vs Compiled Programming Language in Very Simple Terms

Isaiah Ozadhe Tuesday, August 4, 2020 Article

When it comes to programming languages, they can fall into two categories - interpreted or compiled language.
compiled vs interpreted
This article will attempt the explain in very simple terms interpreted and compiled languages, talk about their advantages and disadvantages and give some examples of them.
Table of contents
1.What is an interpreted programming Language? 2.Advantages of an interpreted programming language 3.Disadvantages of an interpreted programming language 4.Examples Of Interpreted Programming languages. 5.What is a Compiled Programming Language? 6.Advantages of a compiled programming language 7.Disadvantages of a compiled programming language 8.Examples of compiled programming languages. 9.Differences between interpreted and compiled programming languages.
What is an interpreted programming Language?
An interpreted programming language as the name implies, is a language that is interpreted at Runtime . In an interpreted programming language , the local machine (CPU) does not not directly execute the instructions. But they are executed by another program called the Interpreter which is written in a language that the local machine can understand. Take for example, if I do this logic in an interpreted programming language:
2+2
The interpreter can understand the plus sign "+", so at runtime will just add the two numbers with it's own add function " add(2,2)".
Advantages of an interpreted programming language
  1. Very easy to implement.
  2. Faster execution as there is no need to run a compilation stage.
  3. More Dynamic
  4. Platform Independent code.
  5. Smaller executable file size.
Disadvantages of an interpreted programming language
  1. Mid - level programming is minimal.
  2. More Vulnerable to Unauthorized code injection.
  3. Source code can be easily read and copied.
  4. Platform Independent code.
  5. Smaller executable file size.
Examples Of Interpreted Programming languages.
The following are some interpreted languages:
  1. APL
  2. BASIC
  3. PYTHON
  4. JavaScript
  5. PHP
  6. Ruby
  7. VB script
What is a Compiled Programming Language?
Unlike an interpreted language, a compiled language is one where the program is converted to machine code after during compilation. The Compiler does not execute any code during compilation, rather it converts every part of the code to the language that the local machine can understand. Take for example, if I do this logic in a Compiled programming language:
2+2
The compiler here will not add the two numbers unlike in our previous example with the interpreted language. It will rather translate the code into the ADD instruction of the local machine. After compilation, the code is now sent to the local machine for execution.
Advantages of a compiled programming language
  1. closer to machine code
  2. Mid - level programming is maximal.
  3. Unauthorized code injection is minimal
  4. Source code cannot be is not easily accessible and copied.
  5. Smaller executable file size.
Disadvantages of a compiled programming language
  1. Platform Dependent.
  2. Additional time needed for compilation.
  3. Writing a compiler is a whole lot of work
Examples of compiled programming languages.
The following are some examples of compiled programming languages:
  1. C
  2. C++
  3. C#
  4. Fortran
  5. Cobra
  6. COBOL
  7. Pascal
Differences between interpreted and compiled programming languages
Compiled programming Languages. Interpreted programming languages.
Platform dependent. Platform Independent.
Compiled before execution. Executed at runtime.
Gives user Maximum control ( Mid -level programming ). Gives user Minimum Control.
Not human readable after compilation. Human readable after interpretation.
Harder to debug. Easier to debug.
Programs written in compiled languages run faster. Run slower.
Debugging is more difficult. Debugging is much easier.
All right guys that's it for today. I remain Isaiah Ozadhe and every week I write on coding in very very simple terms Click For a Guide On Picking a Programming Language

| | Views(888)

See Demo | Download File


Add your comment. Indicate code using code tag


Words: 0 | Chars: 0 | Reading Duration: 0



Images Attachment




Emmason Integratded Services(2017-2024)
All Rights Reserved
Designed and Maintained By Emmason Integrated Services