Compilation vs.
Interpretation
Interesting topic
Presented by: Ahmed Tarek
What is compilation
Compilation is the process of translating source code
written in a high-level programming language into a
lower-level language, such as machine code, that can
be executed by a computer
Steps of compilation
Examples
. C
. C++
. Java
. Swift
What is Interpretation
Interpreted language follows one step to get from
source code to execution. A compiled language is
converted into machine code so that the processor can
execute it. An interpreted language is a language in
which the implementations execute instructions
directly without earlier compiling a program into
machine language
Examples
. Python
. JavaScript
. Ruby
. Perl
. PHP
Compilation vs interpretation
. A compiler takes in the entire
program and requires a lot of
time to analyze the source
code.The interpreter takes a
single line of code and very little
time to analyze it
. interpreted programs are
usually less efficient than
compiled programs
. The compiled programs run
faster than interpreted
programs
Conclusion
In conclusion, the main
difference between compiled
and interpreted programming
languages is in how they are
processed. Compiled
languages are translated into
machine code before they are
executed, while interpreted
languages are translated into
machine code at runtime by
an interpreter.
Thank you for listening 🙏