Object Code Accelerator Manual
Object Code Accelerator Manual—528144-003
3-1
3 Preparing Programs for
Acceleration
Most TNS programs written since the C30 RVU of the operating system can be
accelerated without modification. Variances between TNS and TNS/E systems that
affect accelerated code only, however, might require modification in some programs,
particularly low-level TAL programs.
This section shows you how to prepare your programs for acceleration by OCA:
•
General Considerations on page 3-1, discusses software development issues that
significantly affect the performance of accelerated code.
•
Variances in Accelerated Code on page 3-2, discusses the changes you must
make to programs because of variances between TNS and TNS/E systems that
apply only to accelerated object code.
It assumes that you have already prepared your programs for TNS/E systems, as
described in Section 2, Preparing Your Program for TNS/E Systems.
General Considerations
The following software development issues significantly affect the performance of
accelerated programs. Note that none of these issues is a variance.
Run-Time Libraries
The HP C/C++, HP COBOL85, HP FORTRAN, HP Pascal, TAL run-time libraries, and
the Common Run-Time Environment (CRE) library, are configured as part of the
system library on D-series, G-series, and H-series systems. These run-time library
routines have already been accelerated for TNS/E systems. To save time in
accelerating your programs and to produce the smallest possible accelerated object
files, do not bind the run-time library routines into your programs. In particular, HP
recommends that you do not bind COBOL85 run-time library routines into your
COBOL85 application programs. At process creation, the operating system resolves
external references to run-time library routines.
You must continue to bind into programs that contain C/C++ routines the appropriate
C/C++ model-dependent library file, such as CLARGE or CWIDE. Refer to the C/C++
Programmer’s Guide for details.
User Libraries
When you accelerate your user library, supply the UL option.
Unlike Accelerator or AXCEL for TNS/R, OCA does not require the UserLib option
when translating programs that use a user library.