linkers, loaders and libraries Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is a library and what form do they come in

A

ready- compiled and tested programs that can be run when needed, they can come in the form of pre-built functions (.remainder)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

a DLL is a library that contains …

A

sub routines written to carry out a common task on the Windows OS (Save As)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

the benefits of libraries …(3)

A
  • quick to implement into you own code
  • pre-tested , so so you are sure that they are free from errors
  • pre- compiled which means they are typically optimized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

drawbacks of libraries … (2)

A
  • making specific tweaks can be difficult/impssible
  • you have to trust that the developers will continue to maintain the library
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is a linker

A

a piece of software that links external modules(code) and libraries within the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

the two types of linkers are …

A

static linking
dynamic linking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

static liking works by including …

A

all the required code from libraries in the finished machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

dynamic linking(2)

A
  • compiled versions of libraries are stored on the host computer
  • the OS links the required code from the library as the program is running
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

the advantage of dynamic linking is …

A

reduced size of compiled machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

the disadvantage of dynamic linking is if …

A

libraries change/don’t exist the program will stop working as it may try to call the subroutine in the wrong way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

a loader is a part of the OS that loads…

A

the executable program file(machine code) into memory (RAM) for execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly