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 are referred to as ‘low’ because they are very close to how different hardware elements of a computer actually communicate with each other.
A high-level language is a programming language that uses English and mathematical symbols, like +, -, % and many others, in its instructions.
x = 100
if balance x:
print 'Insufficient balance'
print 'Please take your money'
Computer program that translates a program written in a high-level language to the machine language of a computer.
Example: gcc, clang, go
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.