ARM VERSION 1.2 Datasheet Page 108

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 107
Creating an Application
3-24 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0064D
3.5 Using your own libraries
The ARM librarian, armar, enables sets of ELF object files to be collected together and
maintained in libraries. Such a library can then be passed to armlink in place of several
object files. However, linking with an object library file does not necessarily produce
the same results as linking with all the object files collected into the object library file.
This is because armlink processes the input list and libraries differently:
each object file in the input list appears in the output unconditionally, although
unused areas are eliminated if the armlink
-remove
option is specified
a member of a library file is included in the output only if it is referred to by an
object file or a previously processed library file.
To create a new library called
my_lib
and add all the object files in the current directory,
type:
armar -create my_lib *.o
To delete all objects from the library that have a name starting with
sys_
, type:
armar -d my_lib sys_*
To replace, or add, three objects in the library with the version located in the current
directory, type:
armar -r my_lib obj1.o obj2.o obj3.o
For more information on armar, see the ADS Linker and Utilities Guide.
Note
The ARM libraries should not be modified. If you want to create a new implementation
of a library function, place the new function in an object file or your own library. Include
your object or library when you link the application. Your version of the function will
be used instead of the standard library version.
Page view 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 143 144

Comments to this Manuals

No comments