University of California at Berkeley Department of Electrical Engineering & Computer Sciences Instructional Support Group /share/b/pub/pascal.help Sep 13, 2004 CONTENTS: PASCAL on the EECS Instructional computers On-Line Manuals for PASCAL PASCAL on the EECS Instructional computers ------------------------------------------ The Free Pascal Compiler (http://www.freepascal.org) is installed on the Instructional Solaris x86 computers, including: worksatations in 277 Soda worksatations in HFA C10 (the SelfPaced Center) login servers po.eecs.berkeley.edu, torus.berkeley.edu You can login to the login servers using 'ssh'. Please see http://inst.eecs.berkeley.edu/connecting.html about 'ssh'. Add the Pascal directory to your UNIX search path with the commands: % set path = ( /opt/pascal/bin $path ) % rehash Here is a simple PASCAL program: (* This is hello.p *) program hello (output); begin writeln ('Hello'); end. To compile: % fpc @/share/instsww/fpc/etc/fpc.cfg -n hello.p The resulting program will be called "hello". You can run the program with the command (the "./" part tells UNIX it's in your current directory): % ./hello See the on-line manual (below) for more compiler options. On-Line Manuals for PASCAL -------------------------- The on-line manual pages for FPC Pascal are in /share/instsww/fpc/man. You can display the man pages with the 'man' command, such as: % man -M /share/instsww/fpc/man fpc Or you can add the Pascal manuals to your MANPATH with the command % setenv MANPATH /share/instsww/fpc/man:$MANPATH and display them with the command: % man fpc Please type "more /share/b/pub/software.help" for more information about how to locate softaware on our systems and how to set your PATH and MANPATH environment variables in UNIX. The 600-page FPC manual is available under /share/instsww/fpc/doc. It will also be accessible soon under the password-protected Documentation Site at http://inst.eecs.berkeley.edu/~inst/pub/. Instructional Support Group 378/386/384 Cory, 333 Soda inst@eecs.berkeley.edu