Object Code Accelerator Manual
Object Code Accelerator Manual—528144-003
8-1
8 Error and Warning Messages
OCA issues an error or warning message when it finds a code construct that it cannot
accelerate, or when it cannot understand input options or input file format. OCA does
not produce an executable object file if it finds error conditions. You must resolve all
error conditions to accelerate your program successfully.
This section documents OCA warning and errors. It also describes recovery
procedures, when appropriate, from problems that OCA detects.
Error and warning messages appear in summary form in the OCA output listing.
Warning Messages
OCA issues a warning when it finds a code construct for which it might have produced
incorrect code. OCA cannot automatically distinguish between a benign situation and a
dangerous situation, so you must check the code manually as recommended by the
specific message. An OCA session that produces warnings also produces an
executable file. Investigate the cause of each warning to make sure that the
accelerated file will execute correctly.
15
Cause. This message displays in TAL programs when TNS code appears to
reference a register before setting a value in that register. In TAL programs, the USE,
STACK, and CODE statements can be used to write procedures that implicitly pass
parameters in the TNS register stack. HP discourages this practice and it is not
supported in accelerated customer code. OCA assumes that procedure parameters
are pushed on the memory stack and that the TNS registers are pushed on the
memory stack. The values in the TNS registers are not subsequently used by the
called procedure. When a procedure references a register before resetting it, it is said
to “inherit a register” because the value in the referenced register must have been
inherited from a calling procedure. See Register Inheritance Diagnosis for more
information.
Effect. OCA accelerates this program despite the message. This message can
sometimes display when inheriting a register has not occurred. For example, there may
be no inheritance of registers if the procedures makes a call to Debug or if the caller
Note: OCA options are not case-sensitive, but procedure names
are case-sensitive. To avoid an error, procedure names must
match the names in an object file exactly.
Warning 15: Procedure <proc-name> in file <filename> inherits
register <register-number>.