Previous Next Contents Index Doc Set Home


Preface


This guide describes the Sun Workshop Compiler Pascal 4.2. This guide is to help you write and compile Pascal programs on a SPARCstationTM system.

The Pascal 4.2 compiler runs on Solaris 2.x systems. A previous major Pascal release ran also on Solaris 1.x. Features previously available on only Solaris 1.x systems generally have been dropped or superceded by others that now work on Solaris 2.x systems, as described in current documentation.

The README file that accompanies the product compiler may provide other release-specific information.


Note - References to Pascal in this manual refer to the Sun Workshop Compiler Pascal 4.2 unless otherwise indicated.


Operating Environment

The Sun Workshop Compiler Pascal 4.2 runs on SolarisTM 2.x systems.

For other release-specific information, see the README file.


Installation

Instructions for installing Pascal and other software on your SPARCstation are given in the Sun WorkShop Installation and Licensing Guide, which includes information on installing the online documentation.


Audience

This guide is for software engineers who write Pascal programs on a SPARCstation. It assumes you are familiar with ISO standard Pascal and the SolarisTM operating system.


Organization

This guide contains the following chapters:


Conventions Used in This Guide

This guide contains syntax diagrams of the Pascal language in extended Backus-Naur Formalism (BNF) notation. Here are the meta symbols:

Table  P-1 BNF Meta Symbols

Meta Symbol
Description

::=

Defined as

|

Can be used as an alternative

(a | b)

Either a or b

[ a ]

Zero or one instance of a

{ a }

Zero or more instances of a

'abc'

The characters abc

The following table describes the type styles and symbols used in this guide:

Table  P-2 Typographic Conventions 

Typeface or Symbol
Meaning
Example

AaBbCc123

The names of commands, files, and directories; on-screen computer output

Edit your .login file.

Use ls -a to list all files.

hostname% You have mail.

AaBbCc123

What you type, contrasted with on-screen computer output

hostname% su

Password:

AaBbCc123

Command-line placeholder:

replace with a real name or value

To delete a file, type rm filename.

AaBbCc123

Book titles, new words or terms, or words to be emphasized

Read the User's Guide.
These are called class options.

You must be root to do this.


Shell Prompts in Command Examples

The following table shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.

Table  P-3 Shell Prompts

Shell
Prompt

C shell prompt

machine_name%

C shell superuser prompt

machine_name#

Bourne shell and Korn shell prompt

$

Bourne shell and Korn shell superuser prompt

#


Related Documentation

This manual is designed to accompany the following documents:

Both this guide and the Pascal Language Reference are available in the AnswerBook® system, an online documentation viewing tool that uses dynamically linked headings and cross-references.

Manual Page

Pascal 4.2 provides an online manual page (also known as a man page), on pc(1), that describes the Pascal compiler. This document is included in the Pascal 4.2 package and must be installed with the rest of the software.

Once you install the documentation, you can read about pc by entering the man command followed by the command name, as in:

hostname% man pc

README Files

The README default directory is /opt/SUNWspro/READMEs

This directory contains the following files:

This paper is available also in the AnswerBook system.

Other Related Documentation

Other reference material includes:

Incremental Link Editor (ild)
Numerical Computation Guide
Performance Profiling Tools

Documents in Hard Copy and in AnswerBook

The following table shows what documents are online, in hard copy, or both:

Table  P-4 Documents in Hard Copy and in AnswerBook  

Title
Hard Copy
Online

Pascal User's Guide

X

X (AnswerBook)

Pascal Language Reference

X

X (AnswerBook)

Pascal Quick Reference Card

X

Incremental Link Editor (ild)

X

X (AnswerBook)

Numerical Computation Guide

X

X (AnswerBook)

Performance Profiling Tools

X

X (AnswerBook)

pascal [README file]

X (CD-ROM)

What Every Scientist Should Know About Floating-Point Arithmetic

X (AnswerBook and CD-ROM)


Previous Next Contents Index Doc Set Home