compiler-and-interpreter

Learning the Basics — Machine Code and High Level Languages

Now we know how a CPU executes a program, let’s move on to understanding machine code and high level languages. This is the next step in understanding core concepts.

Understanding Machine Code and High Level Languages

The above nice illustration video shows how machine code gets converted by assembly into machine understandable format.

Low-Level Languages

Low-level languages are referred to as ‘low’ because they are very close to how different hardware elements of a computer actually communicate with each other.

Example: 10010101100101001111101010011011100101

High-Level Languages

A high-level language is a programming language that uses English and mathematical symbols, like +, -, % and many others, in its instructions.

Example:

Compiler

Computer program that translates a program written in a high-level language to the machine language of a computer.

Example: gcc, clang, go

Interpreter

Computer program that simulates a computer that understands a high-level language (or) a program that executes source code or byte code.

Example: ruby, python, php.

Thats it for today in understanding machine code and high level languages. Happy learning.

References:

Leave a Reply