Document

Interpreted vs Compiled Languages

The main difference between an interpreted language and a compiled language is how source code is executed. With an interpreted language such as Python, an interpreter reads code line by line then executes it. On the other hand, a compiled language such a C is directly compiled into machine code by a compiler for execution.

Due to these differences, each provides their own benefits and drawbacks. Compiled languages tend to be faster than interpreted languages and also tend to provide developers more control over hardware resources. Interpreted languages are usually not as fast but are easier to debug. Since code is read and executed line by line, any errors can be immediately recognized and pinpointed.

Analogy

An analogy for this would be if you had a car owner’s manual but it was written in a language you didn’t understand. An interpreted approach would be like having a translator with you to help you with each instruction as you went. A compiled approach would be like sending the entire manual to someone to translate it for you.

car drawing car manual drawing
illustrated by my wife