SPL to HP C/XL Migration Guide (30231-90001)
4-11
| word addresses, generally via LSL and LSR | one to a type short int pointer will |
| shift operators. This also affects pointer | increment it by two, thus pointing to the |
| arithmetic, since adding one to a byte | next type short int variable. |
| pointer increments its address to the next | |
|
byte
, but adding one to an integer pointer | While this is more convenient than the SPL |
| increments its address to the next
word
. A | convention, it will require careful |
| pointer to type DOUBLE or REAL must be | examination of any SPL code being converted |
| incremented by two to advance it to the | to HP C/XL to guarantee accurate pointer |
| next DOUBLE or REAL variable. A pointer to | arithmetic operations. |
| type LONG must be incremented by four. | |
|||
---------------------------------------------------------------------------------------------
|||
| A pointer location may be equated to a | No direct equivalent. |
| location relative to another variable or a | |
| register. | Locations may be equated with a union |
| | declaration or with pointer arithmetic. |
|||
---------------------------------------------------------------------------------------------
LABEL Declaration
Table 4-5. LABEL Declaration
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
|
label-declaration
: | No equivalent. |
| | |
| LABEL
label-id
[,...] ; | |
| | |
---------------------------------------------------------------------------------------------
| | |
| Label declarations are not required. | Labels are not declared. |
| | |
| | Remove the SPL label declarations. |
| | |
---------------------------------------------------------------------------------------------