0% found this document useful (0 votes)
7 views

Compilation vs interpretation

The document discusses the differences between compilation and interpretation in programming languages. Compilation translates high-level code into machine code before execution, while interpretation executes code directly without prior compilation. Compiled languages are generally faster and more efficient than interpreted languages.

Uploaded by

bondooka16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as KEY, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Compilation vs interpretation

The document discusses the differences between compilation and interpretation in programming languages. Compilation translates high-level code into machine code before execution, while interpretation executes code directly without prior compilation. Compiled languages are generally faster and more efficient than interpreted languages.

Uploaded by

bondooka16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as KEY, PDF, TXT or read online on Scribd
You are on page 1/ 9

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 🙏

You might also like