Sign In
Upload
Manuals
Brands
Sun Microsystems Manuals
Software
SunSoft Pascal 4.0
Sun Microsystems SunSoft Pascal 4.0 Manuals
Manuals and User Guides for Sun Microsystems SunSoft Pascal 4.0. We have
1
Sun Microsystems SunSoft Pascal 4.0 manual available for free PDF download: User Manual
Sun Microsystems SunSoft Pascal 4.0 User Manual (333 pages)
Hewlett-Packard User Guide Printer Printer
Brand:
Sun Microsystems
| Category:
Software
| Size: 0.63 MB
Table of Contents
Table of Contents
3
Table of Contents
17
Preface
19
Operating Environment
19
Conventions Used in this Guide
21
Manual Page
22
Related Documentation
22
1 Introduction
25
Standards
25
Pascal Compiler
26
Features
26
Compatibility
26
Text Editors
27
Debuggers
27
Xview Toolkit
27
Native Language Support
27
Internationalization
28
Locale
29
Licensing
29
2 Pascal Programs
31
A Simple Pascal Program
31
Compiling the Program
32
Renaming the Executable File
33
Running the Program
33
An Interactive Pascal Program
34
Compiling the Program
35
Redirecting I/O
35
Running the Program
35
Using a File Name as a File Variable
36
Where DID My Program Fail
37
Using Pascal Traceback
37
Using a Sample Program with Segmentation Violation
38
3 The Pascal Compiler
41
Pc Version Number
41
Compile and Link Sequence
42
Language Preprocessor
43
File Name Extensions Accepted by Pc
44
Table 3-1 File Name Suffixes Recognized by Pascal
44
Option-Passing on the Command-Line
45
Option-Passing in the Program Text
45
Table 3-2 Options that Can be Passed in Program Text
45
Options
47
Bbinding
48
Bsdmalloc
49
Calign
50
Cg89
50
Cg92
50
Cond
50
Config
51
Dname[=Def]
51
Dalign
52
Dryrun
52
Fast
52
Fnonstd
53
Fns
53
Fround=R
53
Ftrap=T
54
Hname
55
Help or -Flags
56
Ipathname
56
I Name
56
Keeptmp
56
Ldirectory
57
Libmieee
58
Libmil
58
Llib
58
Misalign
58
Native
59
Nocx
59
Nolib
59
Nolibmil
59
Noqueue
59
Notrace
60
O[Level]
60
O Filename
62
P and -Pg
63
Pic -Kpic and -PIC -KPIC
63
Qoption
64
Qpath Pathname
64
Qproduce
64
R Path[:Dir]
65
S[Level]
70
Sbfast
70
Temp=Dir
71
Time
72
U Name
73
V0 and -V1
73
Xarch=A
73
Table 3-3 the -Xarch Values
75
Xcache=C
77
Table 3-4 the -Xcache Values
77
Xchip=C
78
Table 3-5 the -Xchip Values
78
Xcg89
79
Xcg92
79
Xildoff
80
Xildon
80
Xlibmieee
80
Xlibmil
80
X05
81
Xlibmopt
81
Xlicinfo
81
Xmerge
81
Xnolib
81
Xnolibmopt
81
Xpg
82
Xprofile=P
82
Table 3-6 the -Xprofile Values
83
Table 3-7 the -Xregs Values
84
Xregs=R
84
Xsafe=Mem
85
Xsb
85
Xsbfast
85
Table 3-8 the -Xtarget Values
86
Xspace
86
Xtarget=T
86
Table 3-9 -Xtarget Expansions
87
Ztext
90
4 Program Construction and Management
91
Units
91
Using Program Units and Module Units
92
Compiling with Units
93
Using Units and Header Files
94
Sharing Variables between Units
95
Libraries
98
5 Separate Compilation
99
Working with Units
99
Using Module Units
100
Using Program Units
100
Sharing Variables and Routines Across Multiple Units
100
Compiling Without the -Xl Option
101
Using the -Xl Option
104
Sharing Declarations in Multiple Units
111
6 The C-Pascal Interface
113
Compilation of Mixed-Language Programs
113
Compatibility of Types for C and Pascal
114
Table 6-1 C and Pascal Size and Alignment of Compatible Types
114
Precautions with Compatible Types
115
Table 6-2 C and Pascal Size and Alignment of Compatible Types with -Xl
115
Incompatibilities
116
General Parameter Passing in C and Pascal
117
Procedure Calls: C-Pascal
117
Variable Parameters
118
Table 6-3 Set Implementation
134
Value Parameters
136
Function Return Values
139
Input and Output
140
Procedure Calls: Pascal-C
141
Variable Parameters
141
Value Parameters
153
Function Return Values
154
Parameters that Are Pointers to Procedures
155
Procedures and Functions as Parameters
156
Global Variables in C and Pascal
157
File-Passing between Pascal and C
158
7 The C++-Pascal Interface
161
Sample Interface
161
Compatibility of Types for C++ and Pascal
162
C++ Name Encoding
162
Procedure Calls: C++-Pascal
162
Arguments Passed by Reference
163
Arguments Passed by Value
174
Function Return Values
176
Procedure Calls: Pascal-C
179
Arguments Passed by Reference
179
Arguments Passed by Value
181
Function Return Values
183
Global Variables in C++ and Pascal
185
Pascal File Pointers to C
186
8 The FORTRAN-Pascal Interface
187
Compiler Mixed-Language Programs
187
Compatibility of Types for FORTRAN and Pascal
188
Precautions with Compatible Types
189
Table 8-1 Default Sizes and Alignments of Compatible Types (Pascal and FORTRAN)
189
Incompatibilities
190
General Parameter-Passing in FORTRAN and Pascal
191
Procedure Calls: FORTRAN-Pascal
192
Variable Parameters
192
Value Parameters
204
Pointers
207
Function Return Values
208
Procedure Calls: Pascal-FORTRAN
209
Variable Parameters
210
Value Parameters
221
Pointers
224
Function Return Values
225
Routines as Parameters
226
9 Error Diagnostics
229
Compiler Syntax Errors
229
Illegal Characters
229
Digits in Real Numbers
230
String Errors
230
Replacements, Insertions, and Deletions
231
Expected Symbols and Malformed Constructs
232
Undefined or Improper Identifiers
232
Expected and Unexpected End-Of-File
233
Compiler Semantic Errors
234
Format of the Error Diagnostics
234
Incompatible Types
234
Procedure and Function Type Errors
235
The Scalar Class
235
Expression Diagnostics
236
Scalar Error Messages
236
Type Equivalence
238
Unreachable Statements
239
The Goto Statement
240
Uninitialized Variables
240
Unused Variables, Constants, Types, Labels, and Routines
240
Compiler Panics, I/O Errors
241
Runtime Errors
241
10 The Xview Toolkit
245
Overview
245
Object-Oriented Programming
246
Objects
246
Tools
246
Pascal Interface
247
Compiling with Libraries
248
Header Files
248
Attribute Lists
249
Data Types
250
Handles
250
An Example
251
Coding Fragment
251
Conversion of C to Pascal
251
Sample Translation of an Xview Function to Pascal
253
Sample Program
254
Menu Demo Program
255
11 Math Libraries
257
Contents of the Math Libraries
258
Libm Functions
259
IEEE Support Functions
260
Ieee_Functions()
261
Ieee_Values()
261
Ieee_Retrospective()
262
SPARC Libraries
262
Arithmetic Exceptions
263
Math Library Exception-Handling Function: Matherr()
264
Libsunmath Support for IEEE Modes and Exceptions
266
Compiler Directives
270
Error Messages
289
Advertisement
Advertisement
Related Products
Sun Microsystems Sun Secure Global Desktop 4.5
Sun Microsystems Sun Crypto Accelerator 4000
Sun Microsystems Ultra 40 M2
Sun Microsystems Sun Crypto Accelerator 4000 Board
Sun Enterprise 4 00 Series
Sun Microsystems 4500/3
Sun Microsystems Fire 4810
Sun Microsystems StorageTek SL8500 4199516XX
Sun Microsystems Sun Enterprise 4500
Sun Microsystems Enterprise 420R
Sun Microsystems Categories
Server
Storage
Desktop
Computer Hardware
Adapter
More Sun Microsystems Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL