Linkers, Loaders and Use of Libraries Flashcards

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

Linkers

A

This is a piece of software that is responsible for linking external modules and libraries included within the code.

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

How do static linkers work?

A

Modules and libraries are added directly into the main file. This increases the size of the file. Any updates to modules and libraries externally will not affect the program. This means a specific version of a library can be used.

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

How do dynamic linkers work?

A

Addresses of modules and libraries are included in the file where they are referenced. When the program is run, the loader retrieves the program at the specified address so it can be executed.

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

There are two types of linker:

A

Static and Dynamic

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

What are the advantages of using dynamic linkers

A

The advantage here is that files remain small and external updates feed through to the main file; there is no need to rewrite the code.

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

What are loaders and what do they do?

A

Loaders are programs provided by the operating system. When a file is executed, the loader retrieves the library or subroutine from the given memory location.

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

Use of Libraries

A

Libraries are pre-compiled programs which can be incorporated within other programs using either static or dynamic linking.

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

What are the advantages of using libraries?

A

They are ready to-use and error free, so save time developing and testing modules.

They can be reused within multiple programs.

Provide a specialised range of functions which would otherwise require a lot of time and effort to develop, so save programmers from having to ‘reinvent the wheel’ and instead make use of others’ expertise.

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