SPRUIG8J January 2018 – March 2024
The following are examples of typical archiver operations:
ar7x -a function sine.obj cos.obj flt.obj
The archiver responds as follows:
==> new archive 'function.lib'
==> building new archive 'function.lib'
ar7x -t function
The archiver responds as follows:
SIZE DATE FILE NAME
-------- ------------------------ -----------------
4260 Thu Mar 28 15:38:18 2019 sine.obj
4260 Thu Mar 28 15:38:18 2019 cos.obj
4260 Thu Mar 28 15:38:18 2019 flt.obj
ar7x -as function atan.obj
The archiver responds as follows:
==> symbol defined: '_sin'
==> symbol defined: '_cos'
==> symbol defined: '_tan'
==> symbol defined: '_atan
==> building archive 'function.lib'
Because this example does not specify an extension for the libname, the archiver adds the files to the library called function.lib. If function.lib does not exist, the archiver creates it. (The -s option tells the archiver to list the global symbols that are defined in the library.)
ar7x -x function sine.obj
The archiver makes a copy of sine.obj and places it in the current directory; it does not remove sine.obj from the library. Now you can examine or edit the extracted file. To replace the copy of sine.obj in the library with the edited copy, enter:
ar7x -r function sine.obj
ar7x -@modules.cmd
The archiver responds as follows:
==> building archive 'modules.lib'
Archiver Command File is the modules.cmd command file. The r command specifies that the filenames given in the command file replace files of the same name in the modules.lib library. The -u option specifies that these files are replaced only when the current file has a more recent revision date than the file that is in the library.
; Command file to replace members of the
; modules library with updated files
; Use r command and u option:
ru
; Specify library name:
modules.lib
; List filenames to be replaced if updated:
align.obj
bss.obj
data.obj
text.obj
sect.obj
clink.obj
copy.obj
double.obj
drnolist.obj
emsg.obj
end.obj