2.5.1

High-Level vs Low-Level Languages

Test yourself on High-Level vs Low-Level Languages

After reading these notes, test your knowledge with free interactive questions on Seneca — used by over 10 million students.

High-Level Languages

Most computer languages are written in high-level programming languages.

High-Level Languages

High-Level Languages

  • High-level languages (HLLs) include most programming languages such as Python, C++ and Java.
  • High-level languages are made of human-readable statements that make it easier for us to program.
  • High-level languages are portable, which means that they can be run on many different types of hardware.
What does a HLL look like?

What does a HLL look like?

  • Commands in a high-level language look very like English. For example:
    • print()
    • SELECT * FROM users;
Why don't we always use HLLs?

Why don't we always use HLLs?

  • Computers can only process instructions in the form of binary numbers.
  • We use special software called a translator to convert our HLL source code into an executable binary file.
Advantages

Advantages

  • HLLs are quicker to create software because one line of code can perform multiple actions on the CPU.
  • A programmer does not have to think about how a program interacts with hardware. They can focus on creative problem-solving.

Low-Level Languages

Low-level programming languages are languages which are much closer to computer-understandable binary.

Low-Level Languages

Low-Level Languages

  • Low-level languages (LLLs) are much closer to executable machine code than high-level languages.
  • LLLs are harder to read by humans, but are easier to read for the computer.
What does a LLL look like?

What does a LLL look like?

  • LLL commands are not easy to read, and might include commands such as:
    • MOV ax, bx
    • CMP ch, dh
    • CLI
Why do we use LLLs?

Why do we use LLLs?

  • LLLs provide exact control over the central processing unit.
  • LLLs need less translation, and often lead to faster code which is useful for computers with low specifications such as embedded systems.
Comparison

Comparison

  • How would you write a simple addition program using values stored in two variables?
  • High-level language
    num1 = 17
    num2 = 4
    print(num1+num2)
  • Low-level language (Little Man Code)
    INP // Input first number
    STA A // Store it in mailbox A
    INP // Input second number
    ADD A // Add the stored first number to the second
    OUT // Output the sum
    HLT // Stop
    A DAT
Jump to other topics
1

Computer Systems

1.1

Systems Architecture

1.2

Memory & Storage

1.3

Computer Networks, Connections & Protocols

1.4

Network Security

1.5

Systems Software

1.6

Ethical, Legal, Cultural & Environmental Concern

2

Computational Thinking, Algorithms & Programming

2.1

Algorithms

2.2

Programming Fundamentals

2.3

Producing Robust Programs

2.4

Boolean Logic

2.5

Programming Languages & IDEs

Practice questions on High-Level vs Low-Level Languages

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
Answer all questions on High-Level vs Low-Level Languages

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium