1/27
Looks like no tags are added yet.
def translator
converts source code from high level language to low level language
what are three types of translators
interpreters
compilers
assemblers
def DBMS
application software that allows stores, retrieves, manipulates + manages data
def assembler
translates assembly language into machine code
give diff between interpreter + compiler
interpreter has slower execution time → requires interpreter to be present during program execution
interpreter translates source code line by line but compiler translates source code into machine in one go
def compilation
process that translates a program written in in high level language into machine code
what are the 4 stages involved in compilation?
lexical analysis
syntax analysis
code generation
optimisation
def application software
software designed to perform a specific task for the user
what are common types of application software
word processor
DBMS
Presentation software
give examples of utility software
disk defragmentation
file management
device drivers
security
system clean up
def open source software
users can view, modify + distribute source code → e.g: linux
→ ideal for collaborative projects
def closed source software
source code is hidden + proprietary → e.g: microsoft windows
→ ideal for business requiring more polished products
ADV of open source
collaboration, faster innovation
often free and customisable
DIS of open source
less control → burdened with requests from users
may contain bugs as product is less polished
ADV of closed source
Greater control
more polished products + professional
DIS of closed source
slower innovation
costly + less customisable
whats purpose of lexical analysis
breaks source code into individual tokens
purpose of syntax analysis?
checks whether tokens follow the grammatical rules of the programming language (correct syntax)
purpose of code generation?
converts the AST into object code
purpose of optimisation?
improves code efficiency without changing its functionality
def code library
a collection of pre - written reusable code that programmes can incorporate into their programs
can be standard or third party
ADV of libraries
saves time = reuses pre written code → reducing development time
reliability = often tested → reduces likelihood of errors
reusability = same code can be reused across multiple programs
DIS of libraries
dependencies = if a library is discontinued, programs relying on it may stop working correctly
compatibility = different library versions may be incompatible with the program
overhead = large libraries can increase application size + complexity
What does static linking do?
libraries combined with program at compile time
creates a larger executable file
doesn’t require separate library file at runtime
what is dynamic linking?
libraries linked to program at runtime
executable files are smaller → library code stored seperately
requires the relevant library to be available when program runs
purpose of linkers?
combines object files + libraries to create a single executable file
combines separately combined object files
resolves references between different files
ensures references to functions + procedures correctly connected
def loaders
load executable programs into main memory so they can run
prepares program for execution by the CPU
what’s the difference between static + Dynamic linking
static- libraries are combined with program at compile time, dynamic - libraries combined with program at runtime
static- produces a larger executable file, dynamic produces smaller
static- doesn’t require the separate library file at runtime, requires relevant library to be available when program runs