This process, and the resulting stand-alone file, is known as a static build of the program. Static linking must be performed when any modules are recompiled.Īll of the modules required by a program are sometimes statically linked and copied into the executable file. Originally, only static libraries existed. A static library, also known as an archive, is intended to be statically linked. In this case, the linking is usually done by a linker, but may also be done by the compiler. When linking is done during the creation of an executable, it is known as static linking or early binding. These libraries are in directories such as /lib, /usr/lib or /usr/local/lib.Īfter resolving the various function references from the main program to the modules in the static library, a linkerĮxtracts copies of the required object modules from the library and copies these A static library is sometimes called an archive since it is just a package of compiled object files. A static library contains object code linked with an end-user application, and then becomes part of that executable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |