|
@@ -8,22 +8,21 @@ based to one of the LFS mailing lists.</para>
|
|
|
<para>When making (compiling) a program, rather than having to rewrite all the
|
|
|
functions for dealing with the kernel, hardware, files, etc. every time you
|
|
|
write a new program, all these basic functions are instead kept in libraries.
|
|
|
-glibc, which you install later, is one of these major libraries, which contain
|
|
|
-code for all the basic functions programs use, like opening files, printing
|
|
|
-information on the screen, and getting feedback from the user. When the
|
|
|
-program is compiled, these libraries of code are linked together with the new
|
|
|
-program, so that it can use any of the functions that the library
|
|
|
+glibc, which you install later, is one of these major libraries, which
|
|
|
+contains code for all the basic functions programs use, like opening files,
|
|
|
+printing information on the screen, and getting feedback from the user. When
|
|
|
+the program is compiled, these libraries of code are linked together with the
|
|
|
+new program, so that it can use any of the functions that the library
|
|
|
has.</para>
|
|
|
|
|
|
-<para>However, these libraries can be very large (for example, libc.a
|
|
|
-from can often be around 2.5MB), so you may not want a separate copy of
|
|
|
-each library attached to the
|
|
|
-program. Just imagine if you had a simple command like ls with an extra 2.5MB
|
|
|
-attached to it! Instead of making the library an actual part of the
|
|
|
-program, or Statically Linked, the library is kept a separate file,
|
|
|
-which is loaded only when the program needs it. This is what we call Dynamically
|
|
|
-Linked, as the library is loaded and unloaded dynamically, as the program needs
|
|
|
-it.</para>
|
|
|
+<para>However, these libraries can be very large (for example, libc.a from
|
|
|
+can often be around 2.5MB), so you may not want a separate copy of each
|
|
|
+library attached to the program. Just imagine if you had a simple command
|
|
|
+like ls with an extra 2.5MB attached to it! Instead of making the library
|
|
|
+an actual part of the program, or statically linked, the library is kept a
|
|
|
+separate file, which is loaded only when the program needs it. This is what
|
|
|
+we call dynamically linked, as the library is loaded and unloaded dynamically,
|
|
|
+as the program needs it.</para>
|
|
|
|
|
|
<para>So now we have a 1kb file and a 2.5MB file, but we still haven't saved any
|
|
|
space (except maybe RAM until the library is needed). The REAL advantage to
|