HP 3000 Manuals

SPL to HP C/XL Migration Guide MPE/iX 5.0 Documentation


SPL to HP C/XL Migration Guide

Table of Contents

 SPL to HP C/XL Migration Guide
   SPL to HP C/XL Migration Guide : COPYRIGHT NOTICE
   SPL Migration
   Migration Choices
   Converting SPL to HP C/XL
   Conversion Strategy
   Major Considerations
   Program Structure
   Introduction
   Conventions
   Source Program Format
   Delimiters
   Comments
   Program and Subprogram Structure
   Hardware Concepts
   Code and Data Segments
   Procedures
   Subroutines
   Intrinsics
   Compound Statements
   Entry Points
   Basic Elements
   Data Storage Formats
   Constant Types
   Identifiers
   Arrays
   Pointers
   Labels
   Switches
   Global Data Declarations
   Types of Declarations
   Simple Variable Declarations
   ARRAY Declaration
   POINTER Declaration
   LABEL Declaration
   SWITCH Declaration
   ENTRY Declaration
   DEFINE Declaration and Reference
   EQUATE Declaration and Reference
   DATASEG Declaration and Reference
   Expressions, Assignments, and Scan Statements
   Expression Types
   Variables
   Function Designator
   Bit Operations
   Arithmetic Expressions
   Logical Expressions
   Condition Clauses
   IF Expressions
   Assignment Statement
   MOVE Statement
   MOVEX Statement
   SCAN Statement
   Program Control Statements
   Program Control
   GO TO Statement
   DO Statement
   WHILE Statement
   FOR Statement
   IF Statement
   CASE Statement
   Procedure Call Statement
   Subroutine Call Statement
   RETURN Statement
   Machine Level Constructs
   ASSEMBLE Statement
   DELETE, PUSH, SET, and WITH Statements
   Procedures, Intrinsics, and Subroutines
   Subprogram Units
   PROCEDURE Declaration
   Local Declarations
   Local LABEL Declarations
   Local SWITCH Declarations
   Local ENTRY Declaration
   Local DEFINE Declaration and Reference
   Local EQUATE Declaration and Reference
   Procedure Body
   INTRINSIC Declarations
   SUBROUTINE Declaration
   Input/Output
   Introduction to Input/Output
   Opening a New Disk File
   Reading a File in Sequential Order
   Writing Records into a File in Sequential Order
   Updating a File
   Numeric Data Input/Output
   File Equations
   Compiler and MPE Commands
   Compiler Format
   Use and Format of Compiler Commands
   $CONTROL Command
   $IF Command (Conditional Compilation)
   $SET Command (Software Switches for Conditional Compilation)
   $TITLE Command (Page Title in Standard Listing)
   $PAGE Command (Page Title And Ejection)
   $EDIT Command (Source Text Merging and Editing)
   $SPLIT/$NOSPLIT Commands
   $COPYRIGHT Command
   Cross Reference Listing
   $INCLUDE Command
   MPE Commands
   Step-By-Step SPL to HP C/XL Conversion
   Step One: Remove Hardware Dependencies
   Step Two: Rewrite SPL to Look Like HP C/XL
   Step Three: Convert the Source to HP C/XL
   Step Four: Improve the Translated Source
   SPL Procedures to Replace Special Features
   SPL BCONCAT Procedure: Bit Concatenation
   SPL BDEPOSIT Procedure: Bit Deposit
   SPL BEXTRACT Procedure: Bit Extraction
   SPL BYTECMP Procedure: Byte Comparison
   HP C/XL Functions to Emulate SPL Operations
   HP C/XL BCONCAT Function: Bit Concatenation
   HP C/XL BDEPOSIT Function: Bit Deposit
   HP C/XL BEXTRACT Macro and Function: Bit Extraction
   HP C/XL BYTECMP Function: Byte Comparison
   HP C/XL MOVEB Function: Move Bytes
   HP C/XL MOVEBW Function: Move Bytes While
   HP C/XL MOVESB Function: Move String Bytes
   HP C/XL MOVEW Function: Move Words
   HP C/XL SCANU Function: Scan Until
   HP C/XL SCANW Function: Scan While
   HP C/XL Bit Shift Macros and Functions



MPE/iX 5.0 Documentation