Computer Systems: A Programmer's Perspective (3rd Edition)
3rd Edition
ISBN: 9780134092669
Author: Bryant, Randal E. Bryant, David R. O'Hallaron, David R., Randal E.; O'Hallaron, Bryant/O'hallaron
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
Object code is created by compilers and assemblers from source files. It is possible to run object files by linking them together. Without the need for linking, compilers may generate executables. In what ways does it fall short?
Object code is created by compilers and assemblers from source files. It is possible to run object files by linking them together. It is not necessary to link the executables that compilers generate. Where exactly do its flaws lie?
Discuss the concept of versioning in object serialization. Why is version control important, and how can it be achieved in different programming languages?
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
- Question 2 In what stage is library code, e.g., printf() integrated with the object code of the source to create an executable. coding linking integration compiling Question 3 The output of the second step in program development. executable code None of the answers given. source code object codearrow_forwardWhy is it essential to understand the distinction between a.NET Framework DLL file and an.EXE file, as well as what each kind of file is?arrow_forwardWhat's the problem with.NET DLLs and.NET executables (EXEs)?arrow_forward
- To run COBOL code on z/OS, we right-click and select “Submit Job” on what file? Select one: a. COBOL b. JSON c. JCL d. Parametersarrow_forwardNeed to be in Python Given some components that have dependencies, find the order in which compilation should take place. A -> B B - C, D D -> E, F E -> F -> C CFEDBAarrow_forwardWhat benefits does a File System website have over an HTTP website? What are the key distinctions between inheritance and encapsulation?arrow_forward
- Why is it vital to know the difference between a.NET Framework DLL file and an.EXE file, as well as what each kind of file really is?arrow_forwardList any four features of .NET Framework. Briefly describe exception handling in C#. List any three exception classes in C# with brief description. Distinguish between dispose ( ) and finalize ( ) methods in C#. Define Type Casting. Name the different forms of Type Casting in C#. What is the need of Type Casting? How many ways are there to pass parameters to C# methods? Explain each briefly.arrow_forwardWhy is it vital to understand the distinction between a.NET Framework DLL and an.EXE file, as well as what that difference is?arrow_forward
- Answer the given question with a proper explanation and step-by-step solution. Please, do it carefully and completely. [ You will write test code in a text document, the code you have written through file reading will be developed to detect the given attributes. For example, when you write a comment line, it will write the code line number to the test code for compiler purposes, it will say that there is a comment line in this line and it will reflect what is written.] While writing your codes, you must use explanation lines and descriptive expressions for your codes. The compiler you will code will be capable of recognizing the following language features; Note: The compiler code will run by reading the file, in which sample code will be written to create a text document and test the following features. Variable definition as numeric and character set Assigning values to variables Mathematical (+, -, *, /, %) operations Printing information on the screen Getting value from…arrow_forwardplease write with proper explanation. Question half solution is here please write what is main disadvantages of this approach? Half solve questions: Mutual Exclusion: Mutex is an abbreviation for Mutual Exclusion. It is a programme object that prevents multiple users from accessing a shared resource at the same time. When a process accesses a shared variable, it is said to be in the critical section. When no two processes are present in the critical section at the same time, this is referred to as Mutual Exclusion or Mutex. while (true) { semaphore sem = S; while (S <= 0) do no operation { S = S-1; wait (S); } /*critical section*/ while (S > 0) { S = S+1; signal (S); } /*remainder section*/ }arrow_forwardWhat are the advantages of a File System website versus an HTTP website? What are the fundamental differences between inheritance and encapsulation?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education