IT lexicon › Programming › ranlib

ranlib

Programming På svenska → Updated: 2026-11-14

Tool that generates a symbol index for a static library to speed up linking.

ranlib is a wrapper around `ar` — both manage .a files (static libraries). When a linker searches for a symbol in an unindexed library, it must scan every object file. With an index (which ranlib generates), the linker jumps directly to the right location. Modern linkers often generate the index automatically, but on older Unix systems you had to run ranlib after updating a library for linking to work correctly. It's a micro-optimization no longer critical, but the name and tool remain.

← Back to the lexicon