Previous Next Contents Index Doc Set Home


Introduction

1


This chapter gives an overview of the features of Sun Workshop Compiler Pascal 4.2, including compatibility, internationalization, and licensing. This chapter contains the following sections:

Standards

page 1

Pascal Compiler

page 2

Features

page 2

Compatibility

page 2

Text Editors

page 3

Debuggers

page 3

Native Language Support

page 3

Licensing

page 5


Standards

Sun Workshop Compiler Pascal 4.2 is a derivative of the Berkeley Pascal system distributed with UNIX® 4.2 BSD. It complies with FIPS PUB 109 ANSI/IEEE 770 X3.97-1983 and BS6192/ISO7185 at both level 0 and level 1.


Pascal Compiler

The name of the Pascal compiler is pc. If given an argument file name ending with .p or .pas, pc compiles the file and leaves the result in an executable file, called a.out by default.


Features

Pascal includes many extensions to the standard, including the following:


Note - For other release-specific information, please refer to the README file that accompanies the product release.


Compatibility

In general, Pascal 4.2 runs in the Solaris 2.x or above operating environment. This product is not compatible with /usr/ucblib/libucb.a on the Solaris 2.x environment.


Text Editors

The operating system provides two main editors:


Debuggers

Sun offers a variety of programming tools that run in the Solaris operating environment. For debugging, the following tools are available:

You can use Pascal with fix-and-continue, a debugger functionality. See the debugger documentation for details of this feature.


Native Language Support

Sun supports the development of applications in languages other than English. These languages include most European languages and Japanese. As a result, you can easily switch your application from one native language to another. This feature is known as internationalization.

Internationalization

A product can support up to four levels of internationalization:

Pascal supports all four levels. See the Pascal Language Reference for a description of the date and time functions in internationalized formats.

Pascal does not allow number denotations within Pascal programs to be represented in various international formats. For example, use of a comma instead of a decimal point in numbers in Pascal program source code in French locale is not allowed. To allow such usage would not comply with the Pascal language standard, ANSI/IEEE 770 X3.97-1983. However, for localization, Pascal allows input and output of numbers in the appropriate international format locales.

For example, the standard specifies a period (.) as the decimal unit in the floating-point representation. Consider the following program, which prints a floating-point value:

program sample(output);

var r : real := 1.2;

begin
	writeln(r);
end.

When you compile and run the program on the internationalized Pascal compiler, the output is:

1.20000000000000e+00

If you reset your system locale to, for example, France, and rerun the program, the output would be slightly different. Namely, Pascal would replace the period with a comma, the French decimal unit.

Locale

You can change your application from one native language to another by setting the locale. For information on this and other native language support features, see the Solaris documentation on internationalization.


Licensing

This compiler uses network licensing, as described in the manual, Sun WorkShop Installation and Licensing Guide.

When you invoke the compiler, if a license is available, the compiler starts. If no license is available, your request for a license is put on a queue, and your compile job continues when a license becomes available. A single license can be used for any number of simultaneous compiles by a single user on a single machine. There are two licensing-related options:

The -xlicinfo option does not check out a license.

For details on how to obtain a license--where to call, what information to have ready--refer to the manual, Sun WorkShop Installation and Licensing Guide.


Previous Next Contents Index Doc Set Home