2.2 - Applications generation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

encourage image

There's no tags or description

Looks like no tags are added yet.

28 Terms

1
New cards

def translator

converts source code from high level language to low level language

2
New cards

what are three types of translators

interpreters

compilers

assemblers

3
New cards

def DBMS

application software that allows stores, retrieves, manipulates + manages data

4
New cards

def assembler

translates assembly language into machine code

5
New cards

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

6
New cards

def compilation

process that translates a program written in in high level language into machine code

7
New cards

what are the 4 stages involved in compilation?

lexical analysis

syntax analysis

code generation

optimisation

8
New cards

def application software

software designed to perform a specific task for the user

9
New cards

what are common types of application software

word processor

DBMS

Presentation software

10
New cards

give examples of utility software

disk defragmentation

file management

device drivers

security

system clean up

11
New cards

def open source software

users can view, modify + distribute source code → e.g: linux

→ ideal for collaborative projects

12
New cards

def closed source software

source code is hidden + proprietary → e.g: microsoft windows

→ ideal for business requiring more polished products

13
New cards

ADV of open source

collaboration, faster innovation

often free and customisable

14
New cards

DIS of open source

less control → burdened with requests from users

may contain bugs as product is less polished

15
New cards

ADV of closed source

Greater control

more polished products + professional

16
New cards

DIS of closed source

slower innovation

costly + less customisable

17
New cards

whats purpose of lexical analysis

breaks source code into individual tokens

18
New cards

purpose of syntax analysis?

checks whether tokens follow the grammatical rules of the programming language (correct syntax)

19
New cards

purpose of code generation?

converts the AST into object code

20
New cards

purpose of optimisation?

improves code efficiency without changing its functionality

21
New cards

def code library

a collection of pre - written reusable code that programmes can incorporate into their programs

can be standard or third party

22
New cards

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

23
New cards

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

24
New cards

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

25
New cards

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

26
New cards

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

27
New cards

def loaders

load executable programs into main memory so they can run

prepares program for execution by the CPU

28
New cards

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