SPL to HP C/XL Migration Guide (30231-90001)
3- 1
Chapter 3 Basic Elements
This chapter discusses conversion issues that correspond to sections in
Chapter 2 of the
Systems Programming Language Reference Manual
.
Data Storage Formats
SPL processes six types of data.
Table 3-1. Data Types
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| INTEGER | short int |
| | |
---------------------------------------------------------------------------------------------
| | |
| DOUBLE | long int OR int (equivalent in HP C/XL) |
| | |
---------------------------------------------------------------------------------------------
| | |
| REAL | float |
| | |
---------------------------------------------------------------------------------------------
| | |
| LONG | double |
| | |
---------------------------------------------------------------------------------------------
| | |
| BYTE | unsigned char OR unsigned short int |
| | (depends on usage) |
| | |
---------------------------------------------------------------------------------------------
| | |
| LOGICAL | unsigned short int |
| | |
---------------------------------------------------------------------------------------------
The HP C/XL types float, double, unsigned char, and unsigned short int
are not precise equivalents for the SPL types REAL, LONG, BYTE, and
LOGICAL. The differences are described below.