Lompat ke konten Lompat ke sidebar Lompat ke footer

Linker Program in Computer | Types of Links | Know about Transport in Computer Work 22

                   Linker Program in Computer | Types of Links | Know about Transport in Computer Work 22

           What is a linker Program?

A link is a program, also known as a link editor and liability, which combines object modules into a single object file. Generally, it is the system that performs the linking process; it takes a file of one or more items, produced by the producer. Also, then combine these files into usable files. Modules are called different pieces of code, written in programming languages. Linking is a process that helps to collect and store a separate piece of code into a usable file or a single file. With the help of a connector, a specific module is also connected to the system library.

 


Linker Program in Computer | Types of Links | Know about Transport in Computer Work 22
Image Source - Google | Image By -  Wikipedia


The main function of the connector is to take things from the assembler as input and create a usable file like the output of the uploader, as it helps to split the big problem into a smaller module that makes the editing process easier. Usually, computer programs are made up of various modules, all of which are computer programs that integrate and separate files of different objects. The whole system refers to these different integrated modules with the help of signal processing. These separate files are merged by the linker into one usable file. The source code is converted into machine code, and the connection is made in the last step while the system is compiled.

Items can be collected via a link from a library or a timeline library. Most connector only contains output files identified by other libraries or object files and does not include the entire library. The process of linking a library requires additional modules to be linked to specific modules; thus, it may be a repetitive process. Typically, one or more system libraries are automatically connected, and libraries are available for different purposes.

Types of Links

There are two types of linking, namely:

Vertical Link: Vertical connection is a type of connection that is made during the integration of a source system where the connection is made before the use of a file or object. On the other hand, a link produces an effect when copying all the library channels into a usable image, known as a vertical link. Compared to dynamic connections, it may require additional memory and disk space. However, if it is running in the system, it does not require the presence of a library that makes it easy to carry. Produces a fully integrated object file that can be downloaded and activated and captures the file configuration file and command-line argument. Two major functions are performed by a static linker, which is discussed below:

Symbol correction: In this case, each symbol has a predefined function, and it associates each mark exactly with the meaning of a single mark from which it emanates.

Migration: Its function is to convert symbols to a transferred memory location and move part of the code and data.

Powerful linking: Another type of link is a flexible connection, made during the operation, where many programs can share a single copy of the library. That is, each module with the same object can share object information with other modules rather than linking the same object repeatedly in the library.

These dynamic libraries are loaded during program development; then, make the last link. Also, the connector is not required for dynamic connections.

Although it requires a small amount of memory space, there is a high chance of errors and chances of failure. In connection, the required shared library is stored in the visual memory which helps to preserve the memory of random access. This link adjusts the address during operation; also, allows users to reset the code to optimize the code. However, it cannot be migrated all over the code. There are two benefits to using a powerful linking method, given below:

In dynamic links, frequently used libraries do not need to be stored in all usable files; they only need to be stored in one place which helps to preserve memory and disk space.

In a library project, if the error is corrected with the help of a library modifier, all problems with using it flexibly, after a reboot will benefit from the repair. If not, the programs will need to be reconnected first when installing this function via a static connection.

Flexible connections also have the following disadvantages:

An incompatible updated library is known as the "DLL hell" on the Windows platform. If the new version does not support the regression, this library will infringe on usability based on the functionality of the previous library form.

The system used by libraries may be guaranteed by document type requirements, accuracy, functionality, and package, but if components cannot be modified, they may not be validated.

Transport

The compiler will not be able to take advantage of the short or very efficient instructions, as in the final production, he has no knowledge of the object in the layout. For example, offset or full address from the current location can be handled with a skipping command, and on the basis of the distance to the target, the offset can be displayed at different lengths. Also known as default skip to skip setting.

Addresses are redirected to a linker relaxation pass, which helps with the potential for further relaxation. Normally, command flexibility occurs when the connection is made, but during integration, the rest of the internal module has the potential to occur as part of the development process. In addition, breaks can also occur in some cases during loading.

 


Posting Komentar untuk " Linker Program in Computer | Types of Links | Know about Transport in Computer Work 22"