HPlogo DATA TYPES CONVERSION Programmer's Guide: HP 3000 MPE/iX Computer Systems > Chapter 1 Introduction

Formatting Data Types

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The designers of the computer specify specific formats for each data type so the computer can access or output a sequence of bits in a predictable way.

The format specifies alignment and size. The alignment predicts the (starting) boundary; it tells where a meaningful unit of information begins. The size tells the length of the unit of information; it predicts the end.

The proper format for a data type depends on two factors:

  • Programming environment.

  • Programming language.

Programming Environment

MPE XL supports two programming environments: Native Mode (NM) and Compatibilty Mode (CM). A program can be designed to run in NM or in CM, or to switch back and forth between subroutines in each of them.

NM takes full advantage of Hewlett-Packard Precision Architecture (HP-PA), which is based on a 32-bit word. CM emulates the MPE V/E operating system, which is based on a 16-bit word.

NOTE: In this manual, assume that data types are MPE XL NM data types, unless CM is specifically mentioned.

Programming Languages

Each environment supports its own high-level languages and compilers. Most are shown in Table 1-1 “Languages Supported on MPE XL”.

Table 1-1 Languages Supported on MPE XL

Native ModeCompatibility Mode
HP Business BASIC/XLHP Business BASIC/V
HP C/XL 
HP COBOL II/XLCOBOL II/V
 HP FORTRAN 66/V
HP FORTRAN 77/XLHP FORTRAN 77/V
HP Pascal/XLHP Pascal/V
HP RPG/XLRPG/V
 SPL/V

 

For language-specific data types and formatting conventions, consult the appropriate language manual.

  • HP Business BASIC/XL Reference Manual (32715-90001)

  • HP C Reference Manual (92434-90001) and HP C/XL Reference Manual Supplement (31506-90001)

  • HP COBOL II/XL Programmer's Guide (31500-90002)

  • COBOL II Reference Manual (31500-90001) and COBOL II/XL Reference Manual Supplement (31500-90005)

  • HP FORTRAN 77/XL Reference Manual (31501-90010)

  • HP FORTRAN 77/XL Programmer's Guide (31501-90002)

  • HP Pascal Reference Manual (31502-90001)

  • HP Pascal Programmer's Guide (31502-90002)

Feedback to webmaster