Changeset 255504f


Ignore:
Timestamp:
09/23/2003 02:27:47 AM (21 years ago)
Author:
James Robertson <jwrober@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
94cb9c22
Parents:
b036adc
Message:

Chapter 5 - Updated the Why Static page to more accurately represent the difference between statically and dynamically linked binaries. Thanks to Ian Molton for point this out. Fixes Bug 602. Updated bookinfo with this year in copyright.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2868 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bookinfo.xml

    rb036adc r255504f  
    2222
    2323<legalnotice>
    24 <para>Copyright (c) 1999-2002, Gerard Beekmans</para>
     24<para>Copyright (c) 1999-2003, Gerard Beekmans</para>
    2525
    2626<para>All rights reserved.</para>
  • chapter01/changelog.xml

    rb036adc r255504f  
    9595</para></listitem>
    9696
    97 <listitem><para>September 22nd, 2003 [jeremy]: Removed the make command from
    98 DejaGNU, since it performs nothing.</para></listitem>
     97<listitem><para>September 22nd, 2003 [jwrober]: Chapter 5 - Updated the Why
     98Static page to more accurately represent the difference between statically and
     99dynamically linked binaries. Thanks to Ian Molton for point this out.  Fixes
     100Bug 602.</para></listitem>
     101
     102<listitem><para>September 22nd, 2003 [jeremy]: Removed the make
     103command from DejaGNU, since it performs nothing.</para></listitem>
    99104
    100105<listitem><para>September 22nd, 2003 [jeremy]: Removed the -k from TCL's make
  • chapter05/whystatic.xml

    rb036adc r255504f  
    1212<filename>glibc/index.html</filename> somewhere on your host system.</para>
    1313
    14 <para>There are two ways of linking the functions from a library to a program
    15 that uses them: statically or dynamically. When a program is linked
    16 statically, the code of the used functions is included in the executable,
    17 resulting in a rather bulky program. When a program is dynamically linked,
    18 what is included is a reference to the linker, the name of the library, and
    19 the name of the function, resulting in a much smaller executable. This
    20 executable has the disadvantage of being somewhat slower than a statically
    21 linked one, as the linking at run time takes a few moments.</para>
     14<para>There are two ways of linking the functions from a library to a program
     15that uses them: statically or dynamically. When a program is linked
     16statically, the code of the used functions is included in the executable,
     17resulting in a rather bulky program. When a program is dynamically linked,
     18what is included is a reference to the linker, the name of the library, and
     19the name of the function, resulting in a much smaller executable. Under
     20certain circumstances, this executable can have the disadvantage of being
     21somewhat slower than a statically linked one, as the linking at run time takes
     22a few moments. It should be noted, however, that under normal circumstances on
     23today's hardware, a dynamically linked executable will be faster than a
     24statically linked one as the library function being called by the dynamically
     25linked executable has a good chance of already being loaded in your system's
     26RAM.</para>
    2227
    2328<para>Aside from this small drawback, dynamic linking has two major advantages
Note: See TracChangeset for help on using the changeset viewer.