HP 3000 Manuals

HP Pascal/iX Programmer's Guide MPE/iX 5.0 Documentation


HP Pascal/iX Programmer's Guide

Table of Contents

 HP Pascal/iX Programmer's Guide
   HP Pascal/iX Programmer's Guide : COPYRIGHT NOTICE

   Ch 1.  Introduction

   Ch 2.  Program Structure
      Syntactic Structure
          Program Heading
          Program Block
      Compilation Unit Structure
          Modules
          Global, Subprogram, and External Compilation Units
      Separate Compilation
          Using Modules
             When to Use Modules
             Advantages of Using Modules
          Using SUBPROGRAM
             When to Use SUBPROGRAM
             SUBPROGRAM Advantages
             SUBPROGRAM Limitations
          Using GLOBAL/EXTERNAL
             When to Use GLOBAL/EXTERNAL
             GLOBAL/EXTERNAL Advantages
             GLOBAL/EXTERNAL Limitations
          Using SUBPROGRAM with GLOBAL
             When to Use SUBPROGRAM with GLOBAL
             SUBPROGRAM with GLOBAL Advantages
      External Interfaces

   Ch 3.  Input/Output
      General File Information
          Physical Files
          Logical Files
          Textfiles
          Current Position Indexes
          File Buffer Variables and Selectors
      Opening Files
      Associate Procedure
      Disassociate Procedure
      Sequential Input/Output
      Textfile Input/Output
      Direct Input/Output
      Closing Files

   Ch 4.  Predefined Pascal Constants, Data Types, and Modules
      Values of Predefined Constants
      Ranges of Predefined Data Types
      Bit16
      Bit32
      Bit52
      Shortint
      Longint
      Predefined Modules
          stdinput
          stdoutput
          stderr
          arg
          pas_hp1000

   Ch 5.  Allocation and Alignment
      Allocation, Alignment, and Packing Algorithm
      Unpacked Variables
      Packed Variables
      Arrays
      Records
      Packed Arrays
      Packed Records
      Crunched Arrays and Records
      Crunched Sets
      Enumerations and Subranges
          Unpacked Enumeration or Unsigned Subranges
          Packed Array Elements of Enumeration or Subrange Types
          Packed Record Elements of Enumeration or Subrange Types
      Files
      Sets
      Strings

   Ch 6.  Dynamic Variables
      GLOBALANYPTR Variables
      LOCALANYPTR Variables
      New Procedure
      Dispose Procedure
      Mark and Release Procedures
      P_getheap and P_rtnheap Procedures
      Getheap and Rtnheap Procedures

   Ch 7.  Parameters
      Value versus Reference Parameters
      ANYVAR Parameters
      READONLY Parameters
      Conformant Array Parameters
      Routines as Parameters
          Routine Parameters
          Parameters of Routine Types
          Variables of Routine Types
          Call Procedure
          Fcall Function
      Congruent Parameter Lists
      Hidden Parameters
          ANYVAR Parameters
          Generic String Parameters
          Extensible Parameter List
          Multidimensional Conformant Array Parameters
          Routine Parameters
          EXTERNAL SPL VARIABLE

   Ch 8.  Procedure Options
      EXTENSIBLE
      DEFAULT_PARMS
          Haveoptvarparm Function
          Haveextension Function
      UNCHECKABLE ANYVAR
      UNRESOLVED
      INLINE

   Ch 9.  External Routines
      EXTERNAL Directive
      Calling HP C from HP Pascal
      Calling COBOL II from HP Pascal
      Calling FORTRAN 77 from HP Pascal
      Calling FORTRAN 66/V from HP Pascal
      Calling SPL from HP Pascal
      Switch Stubs
      How Non-Pascal Programs Call Pascal Routines
      How To Do Pascal I/O with a Non-Pascal Outer Block

   Ch 10.  Intrinsics
      Using Intrinsics
          Specifying Intrinsic Files
          INTRINSIC Directive
          Actual and Intrinsic Parameter Compatibility
             Reference Parameter Compatibility
             Value Parameter Compatibility
             Function and Procedure Parameter Compatibility
             Using Strings as Actual Parameters
          Formal and Intrinsic Function Type Compatibility
          User-Defined Formal Parameters
             Reference Parameter Compatibility
             Value Parameter Compatibility
          Using Intrinsic Functions as Procedures
      Defining Intrinsics
      How to Build or Change an Intrinsic File

   Ch 11.  Error Recovery and Debugging
      Error Recovery
          Escape Procedure
          Escapecode Function
          TRY-RECOVER Construct
          TRY-RECOVER and Optimization
          Assert Procedure
      Traps
          ARITRAP and HPENBLTRAP Intrinsics
          XLIBTRAP Intrinsic
          XARITRAP Intrinsic
             Integer Overflow Trap
             Decimal Overflow Trap
             Invalid ASCII Digit and Invalid Decimal Digit
             IEEE Floating Point Traps
             Compatibility Mode Floating-Point Traps
          XCONTRAP Intrinsic
      HP TOOLSET/XL and HP Symbolic Debuggers
      System Debuggers

   Ch 12.  The Optimizer
      When to Use the Optimizer
      Invoking the Optimizer
          Basic Blocks
      Level One Optimization
          Branch Optimization
          Dead Code Elimination
          Faster Register Allocation
          Instruction Scheduling
          Peephole Optimization
          Real Expression Folding
      Level Two Optimization
          Coloring Register Allocation
          Induction Variable Elaboration and Strength Reduction
          Common Subexpression Elimination
          Constant Folding
          Loop-Invariant Code Motion
          Store-Copy Optimization
          Unused Definition Elimination
      Optimizer Assumptions
      Writing Programs That Are Easily Optimized
      What to Do If the Optimized Program Fails

   Ap A. MPE/iX Dependencies
      System-Dependent Features
          Compiler Options
          File Names
          Associating Logical and Physical Files
          Using File Equations
          Default File Attributes
          Standard Modules
          Additional Features
          Restrictions on Using Executable Libraries (XLs)
      MPE/iX Extensions
          ccode Function
          Fnum Function
          Get_alignment Function
          Statement_number Function
          Setconvert Procedure
          Strconvert Procedure
          Pascal/V Packing Algorithm
             Unpacked Variables
             Packed Variables
             Arrays
             Files
             Records
             Sets
             Strings
             Packed Enumerations
             Packed Subranges of Enumerations
             Packed Subranges of Integers
      Compiling, Linking, and Running Your Program
          Command Files
          :RUN PASCALXL.PUB.SYS
          Run-Time Parameters

   Ap B. HP-UX Dependencies
      System Dependent Features
          Compiler Options
          File Names
          Standard Modules
          Additional Features
      HP-UX Extensions
          Accessing Special Global Variables
          Fnum Function
          Get_alignment Function
          Statement_number Function
      Compiling, Linking, and Running Your Program
          pc Command
          Run-Time Parameters
          Associating Program Header Files with Run-Time Parameters
          Interrupt Handling
          Run-Time Error Handling
   GLOSSARY
   INDEX
       Index



MPE/iX 5.0 Documentation