EBK COMPUTER SYSTEMS
EBK COMPUTER SYSTEMS
3rd Edition
ISBN: 8220101459107
Author: O'HALLARON
Publisher: YUZU
Expert Solution & Answer
Book Icon
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...

Blurred answer
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY