Languages and environments

Content addressed in this section:

  1. Low-level languages
  2. High-level languages
  3. Procedural languages
  4. Declarative languages
  5. Object-orientated languages

Low-level languages

All processors understand data in binary form only. The value 180 is represented and processed in binary as: 10110100.

Reminder

Why is 10110100 the binary representation of 180?

1286432168421
10110100

128 + 32 + 16 + 4 = 180

Creating binary code for every instruction would be time consuming and require a lot of concentration. One slight error could send the wrong instruction to the processor.

Programmers realised that they had to develop low-level languages that were easier for humans to use but that could be converted into binary machine code efficiently. Machine code is the term used to describe binary instructions, eg 0101101010101010010010100111111.

The two common low-level languages are assembly code and hexadecimal code.