In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling it are both known as a static build of the program. Historically, libraries could only be static.

PropertyValue
dbpprop:abstract
  • In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling it are both known as a static build of the program. Historically, libraries could only be static. Static libraries are either merged with other static libraries and object files during building/linking to form a single executable, or they may be loaded at run-time into the address space of the loaded executable at a static memory offset determined at compile-time/link-time. There are several advantages to statically linking libraries with an executable instead of dynamically linking them. The most significant is that the application can be certain that all its libraries are present and that they are the correct version. This avoids dependency problems. In some cases, static linking can result in a performance improvement. Static linking can also allow the application to be contained in a single executable file, simplifying distribution and installation. With static linking, it is enough to include those parts of the library that are directly and indirectly referenced by the target executable (or target library). With dynamic libraries, the entire library is loaded, as it is not known in advance which functions will be invoked by applications. Whether this advantage is significant in practice depends on the structure of the library. In static linking, the size of the executable becomes greater than in dynamic linking, as the library code is stored within the executable rather than in separate files. If you include the size of the library files in the application then the total size will be similar. On Microsoft Windows it is common to include the library files an application needs with the application. On Unix-like systems this is less common as package management systems can be used to ensure the correct library files are available. This allows the library files to be shared between many applications leading to space savings. It also allows the library to be updated to fix bugs and security flaws without updating the applications that use the library. These advantages are not the sole consideration, and many executables (especially those targeting Microsoft Windows) use both static and dynamic libraries. It is important to note that any static library function can call a function or procedure in another static library. The linker/linking loader/loader handles this the same way as for any "normal" object file. Static library files may also be linked/loaded at run-time by a linker or linking loader (e.g. , the X11 module loader). However, whether such a process can be called static linking is controversial.
  • 静的リンク(せいてきりんく)とは、アプリケーションプログラムをリンクした時に必要なライブラリをプログラムに含める方式。 リンク時にオブジェクトファイルを汎用ライブラリと共につなぎ合わせ、実行可能形式のバイナリを作成する。 利点としては、必要なAPIやライブラリのバージョン間の互換性を気にしなくてもよいという利点がある。 欠点としては、実行可能形式のプログラムサイズが大きくなってしまうこと、共有ライブラリをバージョンアップしたときにプログラムを再リンクする必要がある事があげられる。 なお、プログラムを実行する時に初めて共有ライブラリあるいはダイナミックリンクライブラリ(DLL)と結合される方式を動的リンクと呼ぶ。
  • Biblioteka statyczna - to w informatyce rodzaj biblioteki funkcji i podprogramów, która łączona jest z programem w momencie konsolidacji (jeden z etapów kompilacji). W systemach z rodziny Windows pliki bibliotek mają zazwyczaj rozszerzenia . lib lub . obj, natomiast w systemach z rodziny Unix . a lub .o.
dbpprop:hasPhotoCollection
dbpprop:reference
rdf:type
rdfs:comment
  • In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling it are both known as a static build of the program. Historically, libraries could only be static.
  • Biblioteka statyczna - to w informatyce rodzaj biblioteki funkcji i podprogramów, która łączona jest z programem w momencie konsolidacji (jeden z etapów kompilacji). W systemach z rodziny Windows pliki bibliotek mają zazwyczaj rozszerzenia . lib lub . obj, natomiast w systemach z rodziny Unix . a lub .o.
rdfs:label
  • Static library
  • 静的リンク
  • Biblioteka statyczna
owl:sameAs
skos:subject
foaf:page
is dbpprop:redirect of
is owl:sameAs of