SPL to HP C/XL Migration Guide (30231-90001)
2- 1
Chapter 2 Program Structure
This chapter discusses conversion issues that correspond to sections in
Chapter 1 of the
Systems Programming Language Reference Manual
.
Introduction
SPL is particularly designed to access machine-dependent features of the
MPE V operating system. The conversion to HP C/XL requires that these
machine-dependent features be removed.
Conventions
Table 2-1. Bit Numbering
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Bits are numbered left to right, | Not specified. |
| 0 to 15 in a word, | |
| 0 to 31 in a double word, etc. | For convenience, this manual will follow |
| Bit zero is the "high-order" bit. | the SPL conventions. |
| | |
---------------------------------------------------------------------------------------------
An MPE V word is 16 bits long; an MPE XL word is 32 bits. In general,
the word size is not a serious problem in the conversion process, since
corresponding data types are available. Specific considerations are
noted where they apply.
Source Program Format
Table 2-2. Source Program Format
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Records are 80 columns long. | Record lengths are not restricted. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Free field format in columns 1 through 72. | Free field format in all columns. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Columns 73 through 80 may be sequence | Last eight characters of records are |
| numbers. | interpreted as sequence numbers if ALL |