Introduction |
1 |
![]() |
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.
A product can support up to four levels of internationalization:
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.
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.