首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >二进制库

二进制库
EN

Stack Overflow用户
提问于 2009-11-07 07:51:59
回答 1查看 9.1K关注 0票数 0

什么是二进制库?如何生成与库的统计链接二进制文件?库和二进制文件有什么区别?

EN

回答 1

Stack Overflow用户

发布于 2009-11-07 09:54:42

  • 二进制文件是指至少包含由不表示纯文本(即人类可读的字符)的序列组成的数据的任何文件,即不打算通过公共字符集(如ASCII)解释的数据。位(二进制数字的收缩)是计算和通信中最基本的信息单位,每个位的值要么为零,要么为1。二进制文件包括图像文件、声音文件、可执行程序(即可运行的)程序和压缩数据文件。通常由链接器.
  • 在计算机科学中完成,是用于开发软件的子程序或类的集合。库包含为独立程序提供服务的代码和数据。这允许以模块化的方式共享和更改代码和数据。有些可执行文件是独立的程序和库,但大多数库不是可执行的。可执行文件和库通过称为链接的过程(通常由链接器完成)相互引用,称为链接。

代码语言:javascript
复制
- **static library**, also known as an archive, consists of a set of routines which are copied into a target application by the compiler, linker, or binder, producing object files and a stand-alone executable file. This process, and the stand-alone executable file, are known as a static build of the target application. Actual addresses for jumps and other routine calls are stored in a relative or symbolic form which cannot be resolved until all code and libraries are assigned final static addresses.
- In addition to identifying static and dynamic loading, computer scientists also often classify libraries according to how they are shared among programs. **Dynamic libraries** almost always offer some form of sharing, allowing the same library to be used by multiple programs at the same time. Static libraries, by definition, cannot be shared. The term "linker" comes from the process of copying procedures or subroutines which may come from "relocatable" libraries and adjusting or "linking" the machine address to the final locations of each module.

网络上已经做了各种各样的定义。只需根据您使用的语言搜索一些定义即可。

票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1692358

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档