Recompiling the C++ Simulation Libraries

Category |  Purpose |  Intended Audience |  Applicable to |  Description |  Limitations |  See also


Category:

Top

Setup


Purpose:

Top

If you wish to use a compiler other than the one officially supported for your Host architecture, you will need to rebuild the C++ Simulation Libraries using the new compiler/linker/archiver.


Intended Audience:

Top

All users


Applicable to:

Top

ObjecTime 4.4


Description:

Top

From The 4.3/4.4 Documentation Errata

Recompiling the C++ Simulation Libraries

If you wish to use some other compiler for your design work then you will need to recompile these libraries. The following steps can be used to accomplish this.

  1. Select a name for the library. The steps below assume that this name is 'NewLib'. The names 'ARCH' and 'arch' used below have values defined by teh following table depending on the host platform for the compiler to be used in conjunction with this new library.
    HostARCHarch
    SunOS 4.xSUN4sun
    SunOS 5.xSUN5sun5
    (Solaris)
    HP-UXHP400hp400
    9000/4xx
    HP-UXHP700hp700
    9000/7xx
    AIX xxIBMRSibmRS
     
  2. Set your permission mask so everyone will have access to the new library:
        umask 022
     
  3. Got to the source directory:
        cd $OBJECTIME_HOME/C++/SimulationRTS/src
     
  4. Create the following directory:
        mkdir ../NewLib
     
  5. Edit the Makefile. Find the group of targets for the compile host. For example, if the compiler is hosted on a SUN5 platform, add your target 'NewLib.sun5' to the group that includes 'gnu2.sun5'. The actions associated with this target should not need to be modified.
     
  6. Create the file 'Makefile-NewLib.arch':
        cp Makefile-gnu2.arch Makefile-NewLib.arch
     
  7. Edit Makefile-NewLib.arch to reflect the compiler you wish to use. Changes here will include:
     
  8. Create the file 'targets/NEWLIB' which will be referenced as the 'Overrides File' in the target specification to be defined in the toolset and included by the generated makefile. Begin wih a copy of one of the existing files in the targets directory designed to be used on the same host architecture.
     
  9. Create the file targets/extras/lib-NewLib. This file will be included (indirectly) by Makefile-NewLib and the file created in step 8.
     
  10. Create the files target/FooBar, targets/extras/lib-NewLib and targets/extras/platNewLib. The first will be referenced by the generated makefile based on the target specification to be defined in ther toolset. It and the makefile created in step 6 will include the other two.

Limitations:

Top

None


See also:

Top

C++ User Guide & Reference: Chpt.5 C++ Compilation Setup
Toolset Guide: Chpt.23 Compilation Setup Browsers


 

Copyright © 1999, ObjecTime Limited.