Accelerator Manual (G06.27+, H06.04+, J06.03+)
Accelerator Manual—527303-003
2-1
2 Preparing Your Program for
TNS/R Systems
Most TNS programs written for the HP NonStop operating system run on TNS/R
systems without modification. Variances between TNS and TNS/R systems, however,
might require modification in some programs, particularly low-level TAL programs.
In this section:
•
General Considerations on page 2-1, discusses hardware and software release
issues that affect moving programs between any two different models of HP
NonStop systems.
•
Variances in TNS and Accelerated Code on page 2-4, discusses the changes you
must make to programs because of variances between TNS and TNS/R systems.
•
Data Alignment in TNS and Accelerated Code on page 2-13, discusses the data
alignment requirements for TNS code and the Accelerator. It also describes how to
use the Misalignment Tracing Facility diagnostic tool added in the G06.17 RVU
General Considerations
This section discusses hardware and software release issues that affect moving
programs between any two different models of HP NonStop systems. You must
consider these issues when you prepare a program to run on TNS/R systems, whether
or not you plan to accelerate the program. These issues include results after an
overflow, checking segment limits, segment length, and supported operating system
releases.
Results After an Overflow
Multiplication and division results after an overflow are undefined on all HP NonStop
systems. Each HP system generates different overflow results depending on the
specific hardware and algorithms used for the operation. Do not depend upon overflow
results being the same on TNS/R systems as they are on TNS systems.
All TNS instructions for integer multiplication and division operations (except the LMPY
instruction) on TNS/R systems have undefined and incompatible TNS overflow results:
IDIV DDIV QDIV LDIV
IMPY DMPY QMPY
All TNS instructions for addition and subtraction operations and the LMPY instruction
on have compatible overflow results on all TNS and TNS/R systems:
IADD DADD QADD LMPY
ISUB DSUB QSUB
INEG DNEG QNEG