IT lexicon › Programming › ar

ar

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

A tool that creates and manages archives of object files, forming static libraries.

ar (ARchiver) is part of GNU Binutils. It bundles multiple .o object files into a .a archive — the standard format for static libraries. Despite its name, it doesn't compress; it's just a container for organizing related files. The linker later cherry-picks which symbols it actually needs from the archive, a process called "partial linking." Every C project has encountered .a files.

← Back to the lexicon