The librarian, or archiver, creates and manages object code libraries. An object code library is a collection of object files consolidated into a single file, called an archive. The benefit of an archive is that you can pass it to the linker, which will search the archive to resolve symbols needed during a link.
The compiler driver hcl can create archives if given the -ar option. This is more convenient than manipulating archives by hand, so we recommend that you use the compiler driver to construct archives.
You can invoke the archiver using the following syntax:
har [ option ] archive file...
archive is the archive to operate on. file is an object file to add, replace, or delete from the archive, as determined by option. option is a command-line option. Options are case sensitive and cannot be abbreviated.