Pascal User’s Guide SunSoft, Inc. A Sun Microsystems, Inc. Business 2550 Garcia Avenue Mountain View, CA 94043 USA 415 960-1300 fax 415 969-9131 Part No.: 802-5761-10 Revision A, December 1996 Copyright 1996 Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Portions of this product may be derived from the UNIX® system, licensed from Novell, Inc., and from the Berkeley 4.3 BSD system, licensed from the University of California. UNIX is a registered trademark in the United States and other countries and is exclusively licensed by X/Open Company Ltd. Third-party software, including font technology in this product, is protected by copyright and licensed from Sun’s suppliers. RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227- 14(g)(2)(6/87) and FAR 52.227-19(6/87), or DFAR 252.227-7015(b)(6/95) and DFAR 227.7202-3(a). Sun, Sun Microsystems, the Sun logo, SunSoft, Solaris, the Sun Microsystems Computer Corporation logo, the SunSoft logo, ProWorks, ProWorks/TeamWare, ProCompiler, Sun-4, SunOS, ONC, ONC+, NFS, OpenWindows, DeskSet, ToolTalk, SunView, XView, X11/NeWS, AnswerBook are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the United States and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. PostScript and Display PostScript are trademarks of Adobe Systems, Inc. PowerPC™ is a trademark of International Business Machines Corporation. HP ® and HP-UX ® are registered trademarks of Hewlett-Packard Company. The OPEN LOOK® and Sun™ Graphical User Interfaces were developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. THIS PUBLICATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. Please Recycle Contents Preface. xxiii 1. Introduction . 1 Standards . 1 Pascal Compiler . 2 Features . 2 Compatibility . 2 Text Editors. 3 Debuggers. 3 Native Language Support. 3 Internationalization . 3 Locale . 5 Licensing . 5 2. Pascal Programs. 7 A Simple Pascal Program . 7 Compiling the Program . 8 iii Running the Program . 9 Renaming the Executable File . 9 An Interactive Pascal Program. 10 Compiling the Program . 11 Running the Program . 11 Redirecting I/O . 11 Using a File Name as a File Variable . 12 Where Did My Program Fail?. 13 Using Pascal Traceback . 13 Using a Sample Program with Segmentation Violation . 14 Compiling and Running the Program . 14 Using the -g Option . 15 3. The Pascal Compiler. 17 pc Version Number . 17 Compile and Link Sequence . 18 Language Preprocessor . 19 File Name Extensions Accepted By pc . 20 Option-Passing on the Command-Line. 21 Option-Passing in the Program Text . 21 Options . 23 –a. 24 –Bbinding. 24 –b. 24 –C. 25 iv Pascal User’s Guide –c. 25 -calign . 26 –cg89 . 26 –cg92 . 26 -cond . 26 –config . 26 –Dname[=def]. 27 –dalign . 27 -dn. 27 -dryrun . 28 -dy. 28 –fast . 28 -flags . 28 -fnonstd. 28 –fns . 29 –fround=r . 29 –ftrap=t . 29 -G. 30 –g. 30 –H. 31 -hname . 31 –help . 31 –Ipathname . 31 –i name . 32 Contents v -keeptmp. 32 –L. 32 –l. 33 -Ldirectory. 33 -libmieee. 33 –libmil . 33 –llib. 34 –misalign. 34 -mt. 34 –native . 34 -nolib . 35 –nolibmil. 35 -non_init[=yes|no] . 35 Use With -Rw . 38 Lack of Effect of -non_init. 39 -noqueue. ..
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages345 Page
-
File Size-