Introduction
Prev |  | Next

## Introduction

This guide explains how to use the Silicon Graphic Pascal compiler. Two assumptions are made of the Pascal programmer using the IRIS programming environment:

- You are fluent in the Pascal language.

- You are comfortable with the IRIX tools that exist on the IRIS.

## Organization

This guide contains the following chapters and appendices:

Chapter 1, “Pascal Implementation,” lists and describes the set of extensions that are supported by the Pascal compiler on the IRIS. The 1.2 Pascal Release Notes provide a detailed list of changes from the ANSI standard.

Chapter 2, “Compiling, Linking, and Running Pascal Programs,” lists specific commands for compiling, linking, and running Pascal programs on the IRIS-4D. It also explains the tools used in each command procedure.

Chapter 3, “Storage Mapping,” explains storage mapping of Pascal arrays, records, and variant records. Aslo discussed are alignment, size and value ranges for the various data types.

Chapter 4, “Pascal/C Interface,”describes how to use command line options to optimize PFA execution. It also describes the Pascal/C coding interface. The Fortran 77 Programmer's Guide describes the Pascal/Fortran interface.

## Pascal Programming Environment

To write Pascal graphics and other programs in the IRIS-4D programming environment, the programmer uses these tools:

- The IRIS-4D Pascal Graphics Library

- The Pascal compiler

- The IRIX debugger `dbx`

## Programming Procedure

Write and run your Pascal programs according to the procedure listed below. For specific instructions about each step, refer to the chapter or document named in that step.

1. Write programs using the Pascal implementation described in Chapter 1 of this guide.

2. Use graphics routines according to the rules in the Graphics Library Programming Guide and the man pages for the routines.

3. Compile, link, and run the programs as described in Chapter 2 of this guide.

4. Debug the programs using `dbx`.

5. Optimize the programs as described in the IRIS-4D Series Compiler Guide.

There is additional information in this manual that can be useful when you write programs:

- Storage mapping is described in Chapter 3.

- Interfaces between Pascal and C are described in Chapter 4.

## Related Documentation

The following documents contain information relevant to PFA:

- IRIS-4D Series Compiler Guide, Silicon Graphics, Inc., document number 007-0905-030.

## Notation and Syntax Conventions

This guide uses the following notation and syntax conventions:

italic |  | Indic ates arguments in a command line that you must replace with a valid value. In text it is used to indicate commands, document titles, file names, glossary items, new terms, and variables.
`courier` |  | Ind`i`cates computer output and program listings.
`courier bold` |  | Indi``cates computer input and non-printing keys.
[ ] |  | Brackets enclose optional command arguments. Do not enter the brackets.
. . . |  | An ellipsis indicates that the preceding optional items can appear more than once in succession.
( ) |  | Parentheses enclose items. Enter them exactly as shown.
{ } |  | Braces enclose items from which you must select exactly one. Do not enter the braces.
| |  | The vertical bar separates items from which you can choose one.

Prev | Table of Contents | Next
Pascal Programming Guide |  | Chapter 1. Pascal Implementation