TomoLink
CompaniesTCSSystem DesignHow Do C++, Java, Python Work?
System Design
Mediumsoftware-development

How Do C++, Java, Python Work?

30 minsprogramming-languagescompilers
30 mins
1 sections
programming-languages, compilers

Overview

The diagram shows how the compilation and execution work.

Compiled languages are compiled into machine code by the compiler. The machine code can later be executed directly by the CPU. Examples: C, C++, Go.

A bytecode language like Java, compiles the source code into bytecode first, then the JVM executes the program. Sometimes JIT (Just-In-Time) compiler compiles the source code into machine code to speed up the execution. Examples: Java, C#

Interpreted languages are not compiled. They are interpreted by the interpreter during runtime. Examples: Python, Javascript, Ruby

Compiled languages in general run faster than interpreted languages.

How Do C++, Java, Python Work? [Medium] | TCS System_design | TomoLink