diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-06-03 11:27:19 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-06-03 11:27:19 +0000 |
commit | a2cd10ffbacbbb5f9f39e1340d071cea1f8303ee (patch) | |
tree | df3a0713ae4a913a41f3607a205cd9e53e6497b7 /chapter05 | |
parent | f50aec70464ff15d6aacdae2af48a86f9c12221b (diff) |
applied Alex's commas.patch
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1960 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/whystatic.xml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chapter05/whystatic.xml b/chapter05/whystatic.xml index ace5bcbeb..e00b2f8d4 100644 --- a/chapter05/whystatic.xml +++ b/chapter05/whystatic.xml @@ -25,12 +25,13 @@ we call dynamically linked, as the library is loaded and unloaded dynamically, as the program needs it.</para> <para>So now we have a 1 KB file and a 2.5 MB file, but we still haven't saved any -space (except maybe RAM until the library is needed). The REAL advantage to +space (except maybe RAM until the library is needed). The +<emphasis>real</emphasis> advantage of dynamically linked libraries is that we only need one copy of the library. If <filename>ls</filename> and <filename>rm</filename> both use the same library, then we don't need two copies of the library, as they can both get the code from the same file. -Even when in memory, both programs share the same code, rather than loading +Even when in memory, the two programs share the same code, rather than loading duplicates into memory. So not only are we saving hard disk space, but also precious RAM.</para> @@ -46,9 +47,9 @@ need to make sure that the libraries are statically linked when you build them, hence the <userinput>--enable-static-link</userinput>, <userinput>--disable-shared</userinput>, and <userinput>-static</userinput> flags used -through Chapter 5. Once in Chapter 6, the first thing we do is build the +through chapter 5. Once in chapter 6, the first thing we do is build the main set of system libraries, glibc. Once this is made we start rebuilding -all the programs we just did in Chapter 5, but this time dynamically linked, +all the programs we just did in chapter 5, but this time dynamically linked, so that we can take advantage of the space saving opportunities.</para> <para>And there you have it, that's why you need to use those weird |