V2EX  ›  英汉词典

Static Linking

释义 Definition

静态链接:在编译/构建阶段把程序依赖的库代码(如 .a.lib)直接打包进最终可执行文件中。这样运行时通常不再需要依赖相应的共享库文件;但可执行文件体积往往更大,更新库也需要重新编译/链接程序。(该术语也常与 dynamic linking 对比使用。)

发音 Pronunciation (IPA)

/ˈstætɪk ˈlɪŋkɪŋ/

例句 Examples

I built the tool with static linking so it can run on older servers.
我用静态链接构建了这个工具,这样它可以在较旧的服务器上运行。

Although static linking can simplify deployment, it may increase the binary size and require rebuilding the application whenever a library is updated.
虽然静态链接可以简化部署,但它可能会增大可执行文件体积,并且当库更新时需要重新构建应用程序。

词源 Etymology

static 来自希腊语词根 *stat-*(“站立、不变”),在计算机语境里引申为“在构建时就固定下来的”。linking 源自 link(“连接”),指把编译产生的目标文件与库“连接”成一个可执行程序。合起来强调:依赖在生成可执行文件时就被“固定地连接进去”。

相关词 Related Words

文学与典籍 Literary Works

  • Linkers and Loaders(John R. Levine)——系统讲解链接器/加载器原理,涵盖静态与动态链接。
  • Computer Systems: A Programmer’s Perspective(Bryant & O’Hallaron)——在程序生成与运行的章节中讨论链接过程与静态链接的影响。
  • Advanced Programming in the UNIX Environment(W. Richard Stevens 等)——涉及 UNIX 下库与链接方式,常以静态/动态链接对照说明。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   727 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 21:25 · PVG 05:25 · LAX 13:25 · JFK 16:25
♥ Do have faith in what you're doing.