levo

Software Engineering Tools and Translators

Compilers, interpreters and assemblers

  • 3 things to know
  • Component 1
Start revising · £5/month

Overview

Function of a translation program, source code and object code and when an assembler would be used.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Describe the function of a translation program.

Key term

Distinguish between source code and object code.

Key term

What does an assembler do?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Describe the function of a translation program.

    Model answer

    A translator converts a program written by a person into instructions the processor can execute. Source code becomes machine code or an intermediate form the machine can run.

  2. 2

    Distinguish between source code and object code.

    Model answer

    Source code is the program as written by the programmer in a high-level or assembly language. Object code is the machine-level output produced by the translator.

  3. 3

    What does an assembler do?

    Model answer

    An assembler translates assembly language into machine code. Each mnemonic instruction becomes exactly one machine instruction.

  4. 4

    Give an example of when an assembler would be used.

    Model answer

    An assembler is used to build a device driver written to control hardware registers directly. Precise control over the instructions executed is the reason.

  5. 5

    What does a compiler do?

    Model answer

    A compiler translates a whole high-level program into object code in one operation. The object code is saved and can be run many times without the compiler.

  6. 6

    What does an interpreter do?

    Model answer

    An interpreter takes one statement of the source at a time, translates it and executes it immediately. The source must be present every time the program is run.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Software Engineering Tools and Translators, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.