Archiver Examples - Texas Instruments TMS320C54x User Manual

Digital signal processors
Table of Contents

Advertisement

Archiver Examples

6.4 Archiver Examples
6-6
The following are some archiver examples:
-
If you want to create a library called function.lib that contains the files
sine.obj, cos.obj, and flt.obj, enter:
ar500 –a function sine.obj cos.obj flt.obj
TMS320C54x Archiver
Copyright (c) 1998
==>
new archive 'function.lib'
==>
building archive 'function.lib'
-
You can print a table of contents of function.lib with the –t option:
ar500 –t function
TMS320C54x Archiver
Copyright (c) 1998
FILE NAME
–––––––––––––––––
sine.obj
cos.obj
flt.obj
-
If you want to add new members to the library, enter:
ar500
–as function atan.obj
TMS320C54x Archiver
Copyright (c) 1998
==>
symbol defined: ' symbol_name '
==>
symbol defined: ' symbol_name '
==>
building archive 'function.lib'
Because this example doesn't specify an extension for the libname, the
archiver adds the files to the library called function.lib. If function.lib didn't
exist, the archiver would create it. (The –s option tells the archiver to list the
global symbols that are defined in the library.)
-
If you want to modify a library member, you can extract it, edit it, and re-
place it. In this example, assume there's a library named macros.lib that
contains the members push.asm, pop.asm, and swap.asm.
ar500 –x macros push.asm
The archiver makes a copy of push.asm and places it in the current
directory, but it doesn't remove push.asm from the library. Now you can
edit the extracted file. To replace the copy of push.asm in the library with
the edited copy, enter:
ar500 –r macros push.asm
Version x.xx
Texas Instruments Incorporated
Version x.xx
Texas Instruments Incorporated
SIZE
DATE
––––– –––––––––––––––––––––––
248
Mon Nov 19 01:25:44 1998
248
Mon Nov 19 01:25:44 1998
248
Mon Nov 19 01:25:44 1998
Version x.xx
Texas Instruments Incorporated

Advertisement

Table of Contents
loading

Table of Contents