Question

In: Computer Science

Describe two advantages of using dynamically linked libraries in assembling executable program files.

Describe two advantages of using dynamically linked libraries in assembling executable program files.

Solutions

Expert Solution

Two advantages of using Dynamically Linked Libraries (DLLs) in assembling executable program files:
* With respect to dynamic linking, shared code between two programs is placed into a single, separate file.
* In the Microsoft Windows Operating System (OS) world, the required library functions are embedded directly in a program's executable binary file. The libraries remain saved and stored in their own files and they are not copied into the executable.
* DLL and executable (EXE) files are independent of each other until the output interface is changed, which means until the name, parameters, return value type, and calling convention is changed. Replacing a DLL file will not impact the EXE file, therefore this improves the extensibility and maintainability.
* It acts as an "application extension", a software file type.
* DLLs files in a system are the split, relatively independent, incomplete executable applications. The corresponding DLL file gets called when a program is executed. Multiple DLL files can be used by an application and a single DLL file can be used by different applications, so such DLL files become shared DLL files.
* Various program functions or sub-procedures implementation process store DLL files in them, when the program wants to invoke the function for loading the DLL, and later get the function's address, and ultimately make the call.
* The programs need not load all the code at beginning of the run but would need to run it when a program needs a function, for removing it from the DLL.
* When DLL files are used, they reduce the volume of a program.
* In general, DLLs facilitate promoting code modularization.
* DLLs helps in promoting code reuse.
* It also helps promote reduced disk space and efficient memory usage.
* Using DLL could load OS and the programs faster, they could run faster, and consume less memory space on the computer, thus reducing memory requirements.
* Reduced maintenance costs and application support.
* Dynamic linking and loading are used by OSs for programming language library functions.
* Assembly, being a collection of types and resource information, built to work together and form a logical unit of functionality includes- libraries (.dll files) to be used by other applications, and executable application files, that can be run directly from Windows without using any other programs (.exe files).


Related Solutions

Describe two advantages of using dynamically linked libraries in assembling executable program files.
Describe two advantages of using dynamically linked libraries in assembling executable program files.
Java Linked Lists I want a simple program that reads two text files that contains an...
Java Linked Lists I want a simple program that reads two text files that contains an integers matrix and store each file into a linked lists matrix so I can later preform operations such as addition and subtraction on the matrices an example of the input text files: sample a 2 6 2 6 2 18 17 11 20 sample b 3 13 5 4 11 20 13 18 20
Edit question Write a program that merges two files as follows. The two files are in...
Edit question Write a program that merges two files as follows. The two files are in the docsharing which you can download it. One file will contain usernames(usernames.txt):foster001smith023nyuyen002...The other file will contain passwords(passwords.txt):x34rdf3ep43e4rddw32eds22...The program should create a third file matching username and passwords(usernamesPasswords.txt):foster001x34rdf3esmith023p43e4rddnyuyen002w32eds22......Give the user of your programs the option of displaying you output file. CAN ANYONE SOLVE THIS IN C
In C++ Please, using only the libraries given in this homework prompt, Write a program that...
In C++ Please, using only the libraries given in this homework prompt, Write a program that (1) prompts for two integers, (2) prints out their sum, (3) prints out the first divided by the second, and (4) prints out the natural log of the first number raised to the power of the second number. #include <iostream> #include <iomanip> using namespace std; int main() { <your answer goes here> return 0; }
Create a c program that takes 1 parameter, a number using that number, dynamically allocate a...
Create a c program that takes 1 parameter, a number using that number, dynamically allocate a memory so you store that number of integers write integers in order starting from 1 until you fill all that memory print the address and values of the first and the last integer stored in the memory
a python function that reads two text files and merges in to one Linked List, be...
a python function that reads two text files and merges in to one Linked List, be able to print each Item in the new single Linked List class Node(object): item = -1 next = None def __init__(self, item, next): self.item = item self.next = next ================================ textfile! 979 2744 5409 1364 4948 4994 5089 703 1994 4637 2228 4004 1088 2812 170 5179 2614 238 4523 4849 3592 3258 1951 3440 3977 1247 4076 1824 4759 4855 5430 347 974...
Create C program that takes 1 parameter: a number. Using that number, dynamically allocate a memory...
Create C program that takes 1 parameter: a number. Using that number, dynamically allocate a memory so you store that number of integers. Write integers in order starting from 1 until you fill all that memory. Print the addresses and values of the first and the last integer stored in the memory.
Create C program that takes 1 parameter: a number. Using that number, dynamically allocate a memory...
Create C program that takes 1 parameter: a number. Using that number, dynamically allocate a memory so you store that number of integers. Write integers in order starting from 1 until you fill all that memory. Print the addresses and values of the first and the last integer stored in the memory. Help ASAP!!!
What are the advantages of a using a linked list rather than a conventional array in...
What are the advantages of a using a linked list rather than a conventional array in Java? and when would it be more efficient to use an array rather than a linked list? Explain your answer.
Using C++, you will create a program, where you will create two doubly linked lists. These...
Using C++, you will create a program, where you will create two doubly linked lists. These doubly linked lists will contain integers within them. Using the numbers in both of these linked lists, you add the numbers together, and insert the addition of the two numbers into a singly linked list. the input can be from the user or you just write the input. for example, if one number in the doubly linked list is 817 and in the other...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT