12.07.2015 Views

tc_users_guide_v2.5 - Tasking

tc_users_guide_v2.5 - Tasking

tc_users_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the Utilities8−238.4 ARCHIVERThe archiver ar<strong>tc</strong> is a program to build and maintain your own libraryfiles. A library file is a file with extension .a and contains one or moreobject files (.o) that may be used by the linker.The archiver has five main functionalities:• Deleting an object module from the library• Moving an object module to another position in the library file• Replacing an object module in the library or add a new object module• Showing a table of contents of the library file• Extracting an object module from the libraryThe archiver takes the following files for input and output:assembleras<strong>tc</strong>archiverrelocatable object filear<strong>tc</strong> .orelocatable object library.alinkerl<strong>tc</strong>Figure 8−1: ar<strong>tc</strong> ELF/DWARF archiver and library maintainerThe linker optionally includes object modules from a library if that moduleresolves an external symbol definition in one of the modules that are readbefore.8.4.1 CALLING THE ARCHIVERYou can only call the archiver from the command line. The invocationsyntax is:ar<strong>tc</strong> key_option [sub_option...] library [object_file]key_optionWith a key option you specify the main task which thearchiver should perform. You must always specify a keyoption.• • • • • • • •

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!