Computing
Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

Lesson Video

35

Lesson Tasks

  • Watch the Lesson video
    Make notes on your notes sheet.
  • Read the lesson notes
    Make notes on your notes sheet.
  • Complete the learning activities
    Make any notes on your notes sheet.
  • Check the Learning outcomes
    Update your learning objectives

What do I need to Learn?

I need to learn how to explain what an interpreter is and how it is used as a program translator.
I need to learn how to explain what a compiler is and how it is used as a program translator.
I need to learn how to explain what an assembler is and how it is used as a program translator.
I need to learn how to explain the main differences between these three types of translator.
I need to learn how to describe when it would be appropriate to use each type of translator.

Key Terms

high-level languages low-level language machine code assembly language compiler Interpreter assembler translator instruction set assembly mnemonics bit pattern device drivers

Assemblers, compilers and interpreters - Learning Activities


Assemblers

An assembler will translate code written in assembly language into machine code. Assembly language is a very low-level language written using mnemonics like LDA (Load the Accumalator) so that it reflects as closely as possible the internal operations of the CPU.


Compilers

A compiler is a translator program that processes statements written in high level languages like C++ and turns them into machine code. It does this by looking at the whole of the code and turning it into object code before it is then converted in machine code when the object code is run


Interpreters

Interpreters translate code from high level languages into machine code one line at a time so that the program is being translated while the program is running

Coding activity

Task: Interpreters

Write down the advantages and disadvantages of using an interpreter.


Task: Compilers

Write down the advantages and disadvantages of using a compiler.


Task: Assemblers

Write down the advantages and disadvantages of using an assembler.


Extension Task : Little man Computer Challenge

Complete Little Man Computer task 'Mini Challenges' by clicking on the image below


Learning Outcomes

  • I can describe what the three types of translators do
  • I can explain what the three types of translators are
    and how they turn code into machine code.
  • I can explain how high and low level code is translated
    into machine code and the advantages and
    disadvantages of each method.