Skip to content

1.2.2 Applications generation

Paper 1 · Computer Systems · Section 1.2 · 16 flashcards · 19 questions

Programming paradigms, compilers, interpreters, assemblers, linkers, loaders, libraries

1.2.2 Applications Generation

1.2.2(a) Nature of Applications

Applications Software

Definition
Applications software is designed to help end-users perform specific tasks or activities. This software is dependent on systems software to function correctly and can be tailored to a wide range of user needs.
Example
Examples of Applications Software:
• Word Processing - Create and edit text documents (e.g., Microsoft Word)
• Spreadsheets - Perform calculations, analyse data, create charts (e.g., Excel)
• Desktop Publishing - Create documents with complex layouts (e.g., InDesign)
• Web Browsers - Access and navigate the internet (e.g., Chrome, Firefox)
• Database Management - Store and retrieve structured data (e.g., Access)
• Graphics Software - Create and edit images (e.g., Photoshop)

Systems Software

Definition
Systems software operates at a low level, managing the hardware and providing a platform for applications software to run. The user typically does not interact directly with systems software.
Example
Examples of Systems Software:
• Operating Systems - Manages hardware resources (Windows, macOS, Linux)
• Library Programs - Collections of precompiled routines for programs to use
• Utility Programs - Maintenance tasks (virus scanning, backup, defragmentation)
• Device Drivers - Allow OS to communicate with hardware
• Translators - Compilers, interpreters, assemblers

1.2.2(b) Utilities

Definition
Utilities are specialised programs designed to manage, maintain, and control computer resources. These are essential components of systems software that ensure the operating system functions efficiently.
Key Point
Compression
• Purpose: Compress/decompress files to save space

Disk Defragmentation
• Purpose: Reorganise fragmented data to improve access speeds

Antivirus
• Purpose: Detect, alert, and remove malware threats

Backup
• Purpose: Create copies of files for recovery

Automatic Updating
• Purpose: Install OS and software updates automatically

File Management
• Purpose: Organise, copy, move, delete files

Disk Cleanup
• Purpose: Remove temporary and unnecessary files
Key Point
Why Utilities are Critical:
• Maintain system performance (defragmentation, cleanup)
• Protect against security threats (antivirus, firewalls)
• Prevent data loss (backup utilities)
• Keep software up-to-date (patch security vulnerabilities)
• Optimise storage space (compression, cleanup)

1.2.2(c) Open Source vs Closed Source Software

Open Source Software

Definition
Open source software is released with its source code, allowing anyone to view, modify, and distribute the software. It fosters a collaborative environment where improvements can be made by a community of developers.
Pros & Cons
Pros & Cons (Open Source):
AdvantagesDisadvantages
Free to use and modifyInconsistent support
Community-driven improvementsMay lack professional documentation
Transparent code (auditable)Security vulnerabilities visible to attackers
No licensing costsNo guarantee of updates or maintenance
Customisable for specific needsQuality can vary
Example
Open Source Examples:
• Linux (operating system)
• LibreOffice (office suite)
• Firefox (web browser)
• Python (programming language)
• MySQL (database)

Closed Source Software

Definition
Closed source software, also known as proprietary software, does not share its source code with the public. It is typically sold with a licence that restricts how it can be used, modified, and distributed.
Pros & Cons
Pros & Cons (Closed Source):
AdvantagesDisadvantages
Professional supportLicensing costs
Controlled development environmentCannot modify source code
Often better documentedVendor lock-in
Security through obscurityDependent on vendor for updates
Guaranteed updates and maintenanceExpensive for large deployments
Example
Closed Source Examples:
• Microsoft Windows
• Microsoft Office
• Adobe Creative Suite
• macOS
• Oracle Database

1.2.2(d) Translators

Definition
A translator is a program that converts high-level source code written by programmers into low-level object code that a computer's CPU can execute.

Compiler

Definition
A compiler translates the entire high-level code into machine code in one go. During this process, the compiler checks the code for errors and reports them back.
Key Point
Compiler Characteristics:
• Translates entire program at once
• Produces standalone executable file
• Execution is fast (no translation during runtime)
• Error reporting happens before execution
• If errors found, must recompile entire program after fixes

Interpreter

Definition
An interpreter translates and executes code line-by-line. If an error is found, the interpreter stops and reports the error immediately.
Key Point
Interpreter Characteristics:
• Translates and executes line-by-line
• No standalone executable produced
• Slower execution (translation happens every run)
• Immediate error detection
• Useful for development and debugging
• Source code must be present to run

Assembler

Definition
An assembler converts assembly language code (low-level language specific to a computer's architecture) into machine code. Each line of assembly typically corresponds to a single machine code instruction.
Key Point
Assembler Characteristics:
• Translates assembly to machine code
• One-to-one correspondence (mostly)
• Allows direct hardware control
• Highly efficient code
• Not portable across different CPU architectures
• Used for system-level programming

Translator Comparison

Key Point
Input
• Compiler: High-level language
• Interpreter: High-level language
• Assembler: Assembly language

Output
• Compiler: Machine code/executable
• Interpreter: Direct execution
• Assembler: Machine code

Execution Speed
• Compiler: Fast
• Interpreter: Slower
• Assembler: Fast

Error Detection
• Compiler: Before execution
• Interpreter: During execution
• Assembler: During assembly

Portability
• Compiler: Compiled for specific platform
• Interpreter: Source portable (needs interpreter)
• Assembler: Architecture-specific

Use Case
• Compiler: Production software
• Interpreter: Development, scripting
• Assembler: System programming
Exam Tip
When to use each:
• Compiler - Production software where speed matters
• Interpreter - Development, testing, scripting languages (Python, JavaScript)
• Assembler - Operating systems, device drivers, embedded systems

1.2.2(e) Linkers and Loaders

Definition
After source code has been translated into object code, additional systems software is needed to combine separate modules and load the final program into memory ready for execution. These tasks are handled by linkers and loaders.

Linker

Definition
A linker is a utility program that combines one or more compiled object files (modules) and any required library routines into a single executable program, resolving references between them.
Key Point
Linker Responsibilities:
• Combine multiple object code modules into one executable
• Resolve external references (calls to functions or variables defined in other modules)
• Link in precompiled library routines (e.g., maths, I/O, string handling)
• Assign final memory addresses to code and data so modules work together
• Produce a single load module ready to be run
Key Point
Static vs Dynamic Linking:

Static Linking
• All required library code is copied into the executable at link time
• Executable is larger but self-contained
• No dependency on external libraries at runtime
• Updating a library requires re-linking the program

Dynamic Linking
• Library code is not copied in; only references are stored
• Libraries (e.g., DLLs, .so files) are linked at load time or runtime
• Smaller executables and shared libraries save memory across programs
• Libraries can be updated independently of the program

Loader

Definition
A loader is a part of the operating system responsible for copying an executable program from secondary storage into main memory and preparing it for execution.
Key Point
Loader Responsibilities:
• Locate the executable file on secondary storage
• Allocate memory for the program (code, data, stack, heap)
• Copy the program's instructions and data into the allocated memory
• Adjust addresses if the program is loaded at a different location than expected (relocation)
• Pass control to the program's entry point so execution can begin

Relationship Between Translators, Linkers and Loaders

Key Point
Typical Build and Run Pipeline:
1. Translator (compiler/assembler) converts each source file into an object file
2. Linker combines object files and library routines into one executable
3. Loader copies the executable into memory and starts execution
Exam Tip
Easy way to remember:
• Translator - turns source code into object code
• Linker - joins object code modules and libraries into one executable
• Loader - places the executable into memory so the CPU can run it