Computer Systems: A Programmer's Perspective (3rd Edition)
3rd Edition
ISBN: 9780134092997
Author: Bryant
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 7, Problem 7.13HW
A.
Explanation of Solution
Object files in the versions in “libc.a” and “libm.a”:
For “libm.a”:
- The “libm.a” means “C” math library.
- First user needs to find the “libm.a” path using below command:
Command: whereis libm.a
- After entering the above command, the following output will be displayed.
libm: /usr/lib/libm.so /usr/lib64/libm.so
- Now find the number of object files in “libm.a” using
ar t /usr/lib64/libm...
B.
Explanation of Solution
Difference between executable code in “gcc -Og –g” and “gcc -Og”:
When compiling code with “gcc -Og –g” and “gcc -Og”, the result will be same.
Example:
The example for compiling code with “gcc -Og –g” and “gcc -Og” is shown below:
sample...
C.
Explanation of Solution
Shared libraries in the GCC driver on given system:
- Object files that are dynamically loaded and linked into an application.
- That is either in load time or run time.
- It is also called as dynamic link libraries (DLL) that is format of “.so” files.
- Dynamic linking can happen when executable is first loaded and run.
- The libraries are controlled automatically by the dynamic linker in Linux that is using “ld-linux.so”.
- In general, the standard “C” library are dynamically linked by using “libc.so”.
Example:
The example for shared libraries in the GCC driver on given system is shown below:
Sample...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
ok thank you, how would I use the code from the follow up to make a makfile, is it possible to do with just 1 file ? The makefile follows these directives:
The makefile directives will have a target for each .c that will create the object file, a target to create the executable (binary) file using the object files created by the object targets and a target called clean to remove all object files.
What is the purpose of version control in object serialization, and how can it prevent compatibility issues?
Discuss the role of versioning in object serialization. How can you handle versioning issues when deserializing objects that have evolved over time?
Chapter 7 Solutions
Computer Systems: A Programmer's Perspective (3rd Edition)
Ch. 7.5 - Prob. 7.1PPCh. 7.6 - Practice Problem 7.2 (solution page 718) In this...Ch. 7.6 - Practice Problem 7.3 (solution page 718) Let a and...Ch. 7.7 - Prob. 7.4PPCh. 7.7 - Prob. 7.5PPCh. 7 - This problem concerns the m. o module from Figure...Ch. 7 - Without changing any variable names, modify bar5.c...Ch. 7 - Prob. 7.8HWCh. 7 - Consider the following program, which consists of...Ch. 7 - Let a and b denote object modules or static...
Knowledge Booster
Similar questions
- What are the basic differences between the ways in which the Windows and Linux file systems are organized?arrow_forwardDescribe the concept of versioning in object serialization. How can you handle backward and forward compatibility of serialized objects in a system?arrow_forwardDiscuss the concept of versioning in object serialization. How can you ensure backward and forward compatibility of serialized objects when the class structure changes over time?arrow_forward
- Discuss the concept of versioning in object serialization. How can you handle backward and forward compatibility of serialized objects?arrow_forwardWhich of the following accurately describes the linking of a C++ executable? linking is the same as compiling .o files getting put together to form an executable replacing the #define statements with the appropriate values taking the output of the preprocessor and compiling it into a .o filearrow_forwardDiscuss the concept of versioning in object serialization. How can you ensure backward and forward compatibility when dealing with serialized objects?arrow_forward
- Which of the following file access patterns lends itself most well to chained file allocation on disk?arrow_forwardExplain the concept of version control and backward compatibility in object serialization. How can you manage versioning of serialized objects effectively?arrow_forwardWhat is the difference between static and external storage class? give suitable example in support of your answer.arrow_forward
- What are the tools available on Linux systems to help youunderstand and manipulate object file ?arrow_forwardWhat other extended file properties than "cannot be changed" are there to choose from?arrow_forwardExplain the concept of versioning in object serialization. How do you ensure backward and forward compatibility when serializing and deserializing objects?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE LC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr