4.3.2. Rebuilding the ARM C++ library

The ARM C++ library consists of two subsections:

The source for the ARM C++ library additions can be modified as you wish. The source for the Rogue Wave Standard C++ library is not freely distributable. It can be obtained from Rogue Wave Software Inc., or through ARM Ltd, for an additional licence fee.

Follow these steps to rebuild a particular variant of the armcpplib library:

  1. Change directory to:

    Armcpplib_kit\cpplib\cpplib.b\platform

    where platform is either cchppa, gccsolrs, intelrel, depending on your installation.

  2. From the system command-line type:


    armmake lib_cpplib_variant

    where variant is the name of the library variant you want to build. If you are building under UNIX, type the name of your make utility instead of armmake.

    Variant names follow the suffix naming conventions described in Library naming conventions. The makefile supports the same APCS variants as the C library variants described in Table 4.1 and Table 4.2.

    For example, to build a little-endian ARM library with no software stack checking, and no frame pointer type:


    armmake lib_cpplib_cn.32l

    This creates cpplib_cn.32l.

    You can type armmake all to compile all 26 APCS variants.

  3. Create a temporary directory and copy the new cpplib variant to it.

  4. Copy the equivalent precompiled Rogue Wave library to your temporary directory. For the example in step 2, copy Armcpplib_kit\stdlib\stdlib_cn.32l.

  5. Type the following commands to extract the object files from the two libraries and create a new armcpplib library:


    armlib -e cpplib_cn.32l *
    armlib -e stdlib_cn.32l *
    armlib -c -o armcpplib_cn.32l *.o*

    If you are building under UNIX you must escape the * character. Type:


    armlib -e cpplib_hc.32l \*
    armlib -e stdlib_hc.32l \*
    armlib -c -o armcpplib_hc.32l *.o*

    The new library is ready for use.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C