HP 3000 Manuals

$CONTROL Command [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation


SPL to HP C/XL Migration Guide

$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                    | +wn 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                  | +Hn 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 equivalent)                                        |
|                                  |                                                        |
---------------------------------------------------------------------------------------------
|                                  |                                                        |
| $CONTROL PRIVILEGED              | (no equivalent)                                        |
|                                  |                                                        |
| $CONTROL SUBPROGRAM              | (implied by the absence of a main function)            |
|                                  |                                                        |

The HP C/XL Reference Manual Supplement describes the compiler options
and #pragma directives listed above, as well as others not available to
SPL.

--------------------

1   Where an SPL $CONTROL compiler command is replaced by an HP C/XL
   compiler option, please be aware that the compiler option applies to
   all of the source being compiled at the same time.  These compiler
   options are convenient because the source remains unmodified, but you
   do lose the line-by-line toggling of the SPL compiler command.



MPE/iX 5.0 Documentation