Rate This Document
Findability
Accuracy
Completeness
Readability

Programming Languages

High-level languages are classified into compiled languages and interpreted languages based on their translation types, which can be compilation or interpretation.

  • Compiled languages

    C and C++ are typical compiled languages. Figure shows the process from source code to execution. Programs complied by C and C++ are machine instructions, which are loaded by the operating system to a storage device (generally a memory) and directly executed by the CPU.

    Figure 1 Execution process of a compiled language
  • Interpreted languages

    Java and Python are typical interpreted languages. Figure1 and Figure2 show the process from source code to execution. Programs complied by Java and Python are bytecode irrelevant to platforms, and are interpreted and executed by virtual machines (VMs). The VMs are not affected by platform differences.

    Figure 2 Execution process of an interpreted language (Java)
    Figure 3 Execution process of an interpreted language (Python)