SPL to HP C/XL Migration Guide (30231-90001)

10-2
See the
HP C/XL Reference Manual Supplement
for further details.
$CONTROL Command
The SPL $CONTROL command has 22 options. Table 10-2 describes the
available equivalent HP C/XL directives or compiler options.
Table 10-2. $CONTROL Commands
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| $CONTROL LIST | #pragma LIST ON (default) |
| | |
| $CONTROL NOLIST | #pragma LIST OFF |
| | |
| $CONTROL SOURCE | (no equivalent; listing is on by default) |
| | |
| $CONTROL NOSOURCE | (no equivalent; must direct output to $NULL) |
| | |
---------------------------------------------------------------------------------------------
| | |
| $CONTROL WARN | +w
n
compiler option (default) 1 |
| | |
| $CONTROL NOWARN | -w compiler option 1 |
| | |
| $CONTROL MAP | +m and +o compiler options 1 |
| | |
| $CONTROL NOMAP | (default) |
| | |
---------------------------------------------------------------------------------------------
| | |
| $CONTROL AUTOPAGE | #pragma AUTOPAGE ON|OFF |
| | |
| $CONTROL CODE | (no equivalent) |
| | |
| $CONTROL NOCODE | (no equivalent) |
| | |
| $CONTROL LINES=
nnnn
| #pragma LINES
nnn
|
| | |
---------------------------------------------------------------------------------------------
| | |
| $CONTROL ERRORS=
nnn
| (no equivalent) |
| | |
| $CONTROL USLINIT | (no equivalent) |
| | |
| $CONTROL DEFINE | +H
n
compiler option 1 |
| |
|
| $CONTROL SEGMENT=
segname
| (no equivalent) |
| | |
---------------------------------------------------------------------------------------------
| | |
| $CONTROL ADR | +m and +o compiler options 1 |
| | |
| $CONTROL INNERLIST | (no equivalent) |
| | |
| $CONTROL MAIN=
name
| (no equivalent) |
| | |
| $CONTROL UNCALLABLE | (no equiva
lent) |
| | |
---------------------------------------------------------------------------------------------
| | |
| $CONTROL PRIVILEGED | (no equivalent) |
| | |
| $CONTROL SUBPROGRAM | (implied by the absence of a main function) |
| | |