H-Series Application Migration Guide (H06.03+)

Migrating TNS Applications to H-Series Systems
H-Series Application Migration Guide429855-006
B-8
Object Code Accelerator Utility
OCA augments the object file with an Itanium region that contains the Itanium
instructions. The augmented object file is said to be an “accelerated” file. The OCA-
accelerated object file not only runs significantly faster than the unaccelerated object
file, but it also exhibits improved performance over the same object file accelerated
using Accelerator on a G-series system. Figure B-2 shows the OCA acceleration
process.
Interpreted and accelerated TNS files can be debugged using debugging tools
available on H-series systems. See H-Series TNS Debugging Tools on page B-9.
Running Object Code Accelerator
To run the Object Code Accelerator, use the OCA command. The OCA command is
similar to the AXCEL command, but some command line options differ. See the OCA
Manual for details.
Creating an Accelerated Object File With RISC and Itanium
Regions
You can use OCA to accelerate an object file that has already been accelerated by
Accelerator. The resulting file contains both RISC code and Itanium code, each in a
separate region in the file. Similarly, you can use Accelerator to accelerate a file that
has been accelerated by OCA. In this manner, you can create a single object file
accelerated for both the TNS/R and TNS/E platforms. Figure B-3 on page B-9
illustrates the creation of an accelerated object file with Itanium code and RISC code
regions.
Figure B-2. OCA Acceleration Process
vsd003.vst
TNS
Compiler
TNS
Object Code
Object Code
Accelerator
TNS
Object Code
Accelerated
Object Code
(Itanium)