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

10- 1
Chapter 10 Compiler and MPE Commands
This chapter discusses conversion issues that correspond to sections in
Chapter 9 and 10 of the
Systems Programming Language Reference Manual
.
Compiler Format
The compiler listing format for HP C/XL is different from SPL's. For
complete information about the HP C/XL compiler, refer to the
HP C
Reference Manual
and the
HP C/XL Reference Manual Supplement
.
Use and Format of Compiler Commands
Table 10-1. Compiler Command Format
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
|
compiler-command
: |
compiler-directive
: |
| | |
| $
command-name
[
parameter
][,...] | #
directive-name
[
parameter
][...] |
| | |
| $$
command-name
[
parameter
][,...] | |
| | |
---------------------------------------------------------------------------------------------
| | |
| The "$" must be in column 1. | The "#" must be in column 1. |
| | |
| The "$$" form has no HP C/XL equivalent. | |
| Ignore the second "$". | |
| | |
---------------------------------------------------------------------------------------------
| | |
| If a compiler command must be continued on | If a directive must be continued on |
| subsequent lines, each continued line ends | subsequent lines, each continued line ends |
| with "&" and the following line begins with | with "\". |
| "$" in column 1. | |
| |
|
---------------------------------------------------------------------------------------------
| | |
| The command may contain comments, enclosed | The directive cannot include comments. |
| in double angle brackets, "<<
comment
>>". | They become part of the text. |
| | |
---------------------------------------------------------------------------------------------
Some of the SPL compiler commands are paralleled in HP C/XL as compiler
options that are specified in the MPE XL :RUN command used to invoke the
HP C/XL compiler.