Programming languages and Integrated Development Environments - OCRLow-level languages – machine code

Translators are needed to translate programs written in high level languages into the machine code that a computer understands. Tools exist to help programmers develop error-free code.

Part ofComputer ScienceComputational thinking, algorithms and programming

Low-level languages – machine code

Binary code on a computer screen
Figure caption,
An example of binary code on a computer screen

are languages that sit close to the computer's set. An is the set of instructions that the understands.

Two types of low-level language are and .

Machine code

contain that programmers use to instruct the computer what to do. However, they are restricted by the limited number of commands implemented within them. In fact, high-level commands are nothing more than a series of machine code instructions.

Machine code is the instructions that a processor understands and can act upon.

Advantages of using machine code

Writing in machine code allows programmers to do things that might not be possible in a high-level language. High-level language commands are like a predefined English sentence and machine code instructions are like predefined words. Using words as opposed to sentences gives programmers more flexibility to do what they want - they can build their own complex sentences or keep programs very short and simple.

For example, many high-level languages do not allow the programmer to specify items such as the screen's refresh rate. However, it is usually possible to specify this using machine code.

Disadvantages of using machine code

Machine code is notoriously difficult to write in, understand and debug, simply because it consists of either or numbers. Instead, when programmers need direct control, they use another type of low level language called assembly language.