1.2.2 Applications Generation
1.2.2(a) Nature of Applications
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
• 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
• 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
• 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
| Advantages | Disadvantages |
|---|---|
| Free to use and modify | Inconsistent support |
| Community-driven improvements | May lack professional documentation |
| Transparent code (auditable) | Security vulnerabilities visible to attackers |
| No licensing costs | No guarantee of updates or maintenance |
| Customisable for specific needs | Quality can vary |
• Linux (operating system)
• LibreOffice (office suite)
• Firefox (web browser)
• Python (programming language)
• MySQL (database)
Closed Source Software
| Advantages | Disadvantages |
|---|---|
| Professional support | Licensing costs |
| Controlled development environment | Cannot modify source code |
| Often better documented | Vendor lock-in |
| Security through obscurity | Dependent on vendor for updates |
| Guaranteed updates and maintenance | Expensive for large deployments |
• Microsoft Windows
• Microsoft Office
• Adobe Creative Suite
• macOS
• Oracle Database
1.2.2(d) Translators
Compiler
• 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
• 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
• 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
• 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
• 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
Linker
• 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
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
• 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
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
• 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