7.5.4. C library usage and the ARM Project Manager

In certain circumstances, you may not require the default ANSI C library, for example, if you are implementing an RTOS with its own stack and heap management.

Follow these steps to link with your own libraries:

  1. Select the project root.

  2. Select Tool Configuration for project.apj ? armlink ? Set from the Project menu. The Linker Configuration dialog is displayed.

  3. Click the General tab and ensure that the Search standard libraries check box is not selected.

  4. Click the Listings tab and add any libraries you want to link with to the Extra command-line arguments field.

  5. Click OK to save the configuration.

As described in The C and C++ interworking libraries, you may sometimes need to force the inclusion of a specific module from a particular library. Follow these steps to do this when using ARM Project Manager:

  1. Select the project root.

  2. Select Tool configuration for project.apj ? armlink ? Set from the Project menu. The Linker Configuration dialog is displayed.

  3. Click the Listings tab and enter the library modules that you want to be forcibly included in the Extra command line arguments field. For example, to force the inclusion of strcpy() and strcmp()


    c:ARM250\lib\armlib.32l(strcpy.o)
    c:ARM250\lib\armlib.32l(strcmp.o) 

    This can also be written within quotes to override the normal meaning of space as an argument separator.

    Alternatively, you can use a pattern for the name of the modules:


    c:ARM250\lib\armlib.32l(strc*)

  4. Click OK to save the configuration.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential