AR

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Examples)
(2 intermediate revisions by one user not shown)
Line 3: Line 3:
 
|extensions={{ext|a}}, {{ext|lib}}
 
|extensions={{ext|a}}, {{ext|lib}}
 
}}
 
}}
 
+
'''ar''' is a non-compressed archive format for [[Unix]]-style operating systems. It was mostly superseded by [[Tape Archive|tar]] for general archiving use, but persists in use for specialized applications involving linkable libraries for development.
'''ar''' is a non-compressed archive format for [[Unix]]-style operating systems. It was mostly superceded by [[Tape Archive|tar]] for general archiving use, but persists in use for specialized applications involving linkable libraries for development.
+
  
 
==Overview==
 
==Overview==
There are at least 5 different variants of the ar file format since it has never been formally standardized: AIX(big), AIX(small), Coherent, BSD and GNU
+
There are at least 5 different variants of the ar file format since it has never been formally standardized: AIX(big), AIX(small), Coherent, BSD, and GNU.
 +
 
 +
== Examples ==
 +
To list the contents of an archive, using the <code>ar</code> utility:
 +
$ ar tv example.a
 +
 
 +
To extract the contents of an archive:
 +
$ ar xvo example.a
 +
 
 +
== Software ==
 +
* [http://www.gnu.org/software/binutils/ GNU Binutils] → ar
 +
* [http://llvm.org/docs/CommandGuide/llvm-ar.html llvm-ar]
  
 
==References==
 
==References==
* [http://en.wikipedia.org/wiki/Ar_(Unix) Wikipedia page] for the ar archiver
+
* [[Wikipedia:Ar (Unix)|Wikipedia page]] for the ar archiver
 
* IBM AIX documentation on scribd [http://www.scribd.com/doc/39237415/Aix-Files#outer_page_400 here] (page 386+; someone might find a better accessible version)
 
* IBM AIX documentation on scribd [http://www.scribd.com/doc/39237415/Aix-Files#outer_page_400 here] (page 386+; someone might find a better accessible version)
* Also from IBM is [http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=%2Fcom.ibm.aix.files%2Fdoc%2Faixfiles%2Far_big.htm this] description (and [http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=%2Fcom.ibm.aix.files%2Fdoc%2Faixfiles%2Far_big.htm this] for the "small" variant)
+
* Also from IBM is [http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.files/ar_big.htm this] description (and [http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.files/ar_small.htm this] for the "small" variant)
 
* The Microsoft [http://msdn.microsoft.com/library/windows/hardware/gg463125 PE/COFF documentation] also has a section on .lib files which use the same format
 
* The Microsoft [http://msdn.microsoft.com/library/windows/hardware/gg463125 PE/COFF documentation] also has a section on .lib files which use the same format
  
 
[[Category:Development]]
 
[[Category:Development]]

Revision as of 15:52, 18 January 2015

File Format
Name AR
Ontology
Extension(s) .a, .lib

ar is a non-compressed archive format for Unix-style operating systems. It was mostly superseded by tar for general archiving use, but persists in use for specialized applications involving linkable libraries for development.

Contents

Overview

There are at least 5 different variants of the ar file format since it has never been formally standardized: AIX(big), AIX(small), Coherent, BSD, and GNU.

Examples

To list the contents of an archive, using the ar utility:

$ ar tv example.a

To extract the contents of an archive:

$ ar xvo example.a

Software

References

  • Wikipedia page for the ar archiver
  • IBM AIX documentation on scribd here (page 386+; someone might find a better accessible version)
  • Also from IBM is this description (and this for the "small" variant)
  • The Microsoft PE/COFF documentation also has a section on .lib files which use the same format
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox