Keil Logo

-r

2.22 -r

Replaces, or adds, files in the specified library.

Usage

If the library does not exist, a new library file is created and a diagnostic message is written to standard error.You can use this option in conjunction with other compatible command-line options.
-q is an alias for -r.
If no files are specified and the library exists, the results are undefined. Files that replace existing files do not change the order of the library.
If the -u option is used, then only those files with dates of modification later than the library files are replaced.
If the -a, -b, or -i option is used, then pos_name must be present and specifies that new files are to be placed after (-a) or before (-b or -i) pos_name. Otherwise the new files are placed at the end.

Examples

To add or replace obj1.o, obj2.o, and obj3.o files in a library, enter:
armar -r mylib.a obj1.o obj2.o obj3.o
To replace files with names beginning with k in a library, and only if the file in the library is older than the specified file, enter:
armar -ru mylib.a k*.o
Non-ConfidentialPDF file icon PDF versionARM DUI0590F
Copyright © 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.