B Building C++ Applications Using the pRISM Tool Set


The procedure for building C++ applications in pSOSystem is slightly different than the procedure for building C applications. Follow these steps:

    1. Run-time support and the C++ class library source files are provided in directory $PSS_ROOT/sys/libc/src/sysclass. This class library must be built as follows. You should first go to this directory, as in the following example:

                              cd $PSS_ROOT/sys/libc/src/sysclass

    The build file default.bld in this directory is configured for the most generic form of the target processor. You can change the defaults if necessary.

    When you are ready, you can either invoke pRISM and click on the Build button or enter the following command at the command line to build the C++ class library for your target processor:

                               build default.bld

    The library resides under $PSS_ROOT/sys/libc. For 68K-based systems, the name of the library is sysclass.olb. For PowerPC systems, the name of the library is libcxxsp.a. For x86-based systems, the name of the library is sysclass.lib.

    2. The C++ sample application Build file for pRISM should be used as an example when you build your own C++ application. For 68K-, x86-, and PowerPC-based systems, the location of the C++ sample application Build file is $PSS_ROOT/apps/cxx/default.bld. Edit this file and make sure that the symbol PSS_BSP is replaced by the appropriate directory pathname. Refer to the pSOSystem Tutorial in pSOSystem Getting Started for information about this symbol.

    The symbol PSS_COMPLIB must be replaced by the appropriate directory pathname of the processor-specific C++ run-time library provided with the Green Hills C++ compiler. Also, the name of the C++ run-time library must be added to the Build file. For the 68K, PowerPC, and x86 target processors, the C++ library is libcc.a and is added as follows:

        :libraries=libcc.a

You should refer to the pSOSystem documentation for any other steps, if needed, before you build an application.

After you follow all of these steps, go to the working directory where the application resides and invoke pRISM. You can now build the application by selecting an appropriate executable configuration, such as ram.bld, and clicking on the Build button as explained in the pSOSystem Tutorial in pSOSystem Getting Started.

Alternately, you can enter the desired build command from the command line to build your application. For example:

        build  default.bld ram.bld
        build  default.bld app.bld






psos_support@isi.com

Copyright © 1996, Integrated Systems, Inc. All rights reserved.