ZIMFundi
Sign inJoin free

Topic 3 of 8 · Form 5

System software

Manages memory (paging, segmentation, virtual memory), processes (scheduling: round robin, shortest job first, first come first served, priority), files, input/output, security and the user interface.

Notes for this topic 1 file, in order

Create a free account to download PDFs.

  1. PDFSystem software – Computer Science notes (ZIMSEC A Level)47.1 KB

The operating system

Manages memory (paging, segmentation, virtual memory), processes (scheduling: round robin, shortest job first, first come first served, priority), files, input/output, security and the user interface.

  • Process states: ready, running, blocked.
  • Virtual memory uses secondary storage as an extension of RAM; excessive swapping causes thrashing.

Utility software

Antivirus, defragmentation, backup, compression and disk formatting.

Translators

  • Assembler: assembly to machine code.
  • Compiler: translates the whole program into object code; fast execution; errors reported after compilation; source code not needed to run.
  • Interpreter: translates and executes line by line; easier debugging; slower; source code needed.
  • Intermediate code (bytecode) for portability (Java virtual machine).

Stages of compilation

Lexical analysis (tokens, removing comments and white space, symbol table), syntax analysis (checking grammar, parse tree), code generation, and optimisation.

Libraries and linkers

Library routines are pre-written, tested code; a linker combines modules; a loader places code in memory.

Grammar

Backus–Naur Form (BNF) and syntax diagrams define language rules.

Exam tip: Compare compilers and interpreters in a table, giving at least one advantage of each.

Check yourself

  1. Name the four stages of compilation.
  2. What is thrashing?
  3. Give one advantage of an interpreter during development.
Show answers
  1. Lexical analysis, syntax analysis, code generation, optimisation.
  2. Excessive swapping of pages between RAM and disk, slowing the computer greatly.
  3. Errors are shown line by line, making debugging easier.
Next topicAlgorithms and data structures

Questions about this topic (0)

No questions about this topic yet.