levo

Software Engineering Tools and Translators

Compilers, interpreters and assemblers

  • 3 things to know
  • Component 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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