Download PASCAL·SO USER`S GUIDE
Transcript
PREFACE • • This manual describes the PASCAL-SO language for programming the SO SO and SOS5 microcomputers. PASCAL-SO is based on the Pascal language invented in 1970 by Professor Niklaus Wirth of Zurich, and incorporates extensions designed to take advantage of both the microcomputer features of the SO SO and SOS5, and the system features of ISIS-II. Each release of PASCAL-SO is characterized by a two-digit code in the form of: "version number" . "release number within version" Manual Organization • • The PASCAL-SO language is a superset of the Pascal programming language, as defined in PASCAL User Manual and Report, Second Edition, by Kathleen] ensen and Niklaus Wirth (Springer-Verlag, 1974, Corrected Printing, 1975). This book defines "Standard Pascal" and will be referred to in the remainder of this manual as PASCAL User Manual. Since PASCAL User Manual is a concise reference for the features of Standard Pascal, the programming language PASCAL-SO will be described only by its differences from, and extensions to, Standard Pascal, the assumption being that the reader is familiar with the contents of PASCAL User Manual, and moderately conversant with Standard Pascal. Chapters 1 through 3 describe the features of the PASCAL-80 language, and Chapter 4 describes how to operate the PASCAL-SO System. Chapter 5 presents example programs illustrating the features of PASCAL-SO. The appendices supply reference information for all aspects of program generation, compilation, and execution. Audience • This manual is intended for programmers who are familiar with PASCAL. It contains the following chapters and appendices: . "Chapter 3. Predeclared Procedures," which describes the predeclared procedures and functions in PASCAL-80. . "Chapter 4. Operating Instructions," which describes how to generate, compile, and execute a PASCAL-SO program . "Chapter 1. Introduction," which gives a general description of the PASCAL-SO system. "Chapter 2. Language Features," which describes the data types, control constructs, and procedure and function declarations. "Chapter 5. Example Programs," which presents four PASCAL-SO programs, complete with compiler listing and output. • "Chapter 6. Separate Compilation, Program Linkage, Relocation, and Execution," which gives general instructions for partitioning a Pascal program into separate compilation units, for linking to external non-Pascal object modules and for creating Load and Go versions of Pascal programs. iii l