Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Differences › Computer Science

Compiler vs Interpreter

A compiler translates the whole program before running it; an interpreter translates and runs it line by line.

Compiler

Translates all the source code into machine code first.

Interpreter

Reads and runs the source code one statement at a time.

Compiler compared with Interpreter
CompilerInterpreter
Speed of the finished programUsually fasterUsually slower
Errors reportedAll together, before runningOne at a time, while running
ExamplesC, C++Python (mostly), JavaScript (traditionally)

Example

Python stops at the first line with an error and shows it; a C compiler lists every error before anything runs.

Try it or learn more

  • Class 9 Python

More differences

  • RAM vs ROM
  • Hardware vs Software
  • LAN vs WAN
  • HTTP vs HTTPS
  • Virus vs Worm