Machine language tutorial


A machine language is a collection of binary digits or bits that a computer reads and interprets.  A computer cannot directly understand the programming languages ​​used to create computer programs, so program code must be compiled.



Example of Machine Language

Machine Instruction         Machine Operation
00000010            Turn bulb fully off
00000100            Dim bulb by 10%
00001000            Brighten bulb by 10%
00010000            If bulb is fully on, skip over next instruction



The primary PC programming language was made in 1883, when a lady named Ada Lovelace worked with Charles Babbage on his initial mechanical PC, the Analytical Engine.

Machine language can directly execute numerical codes for operating a particular computer. Codes are strings of 0s and 1s, or binary digits ("bits"), often converted both to and from hexadecimal (base 16) for human viewing and modification.

Compilers for high-level languages ​​such as C, C ++, Java or Python translate your program statement into dozens of machine instructions to become an effective programmer using a high level language, there is no need to understand machine language. But there are circumstances where it is necessary or helpful

The main difference between a machine code and an assembly language is that machine code is a language that contains binaries that can be executed directly by a computer while an assembly language is a low-level programming language that needs to be replaced by a software Requires what is called assembler in machine code.

Both high level language and low level language are types of programming languages. The main difference between a high-level language and a low-level language is that programmers can easily understand or interpret or compile a higher-level language than a machine.

Machine language tutorial Machine language tutorial Reviewed by exammocktest on 22:10 Rating: 5

No comments:

Powered by Blogger.