home *** CD-ROM | disk | FTP | other *** search
- Organizing Pascal Diskettes
-
- Dave Cortesi
- Silicon Valley Computer Society
-
- While I have been using IBM Pascal
- for a month now, others just starting
- might be interested in a method I use
- to organize diskettes for easy
- compiling.
-
- I've always split diskettes into two
- categories: "project" and "work". A
- project diskette is a repository for
- files and only that; it has no
- commands and no system files. Project
- diskettes are normally loaded into
- the B drive. For Pascal work, a
- project diskette contains only Pascal
- source and object files and maybe
- some test data (the EXE files are too
- big, usually; they go on disks where
- they will be used). Pascal programs
- get a .PAS extension; modules are
- .MOD, interfaces are .INF; and
- implementations are .IMP. You might
- have several project diskettes, each
- with files related to one "project".
-
- You probably would have only one
- Pascal "work" diskette. A work
- diskette contains the system files,
- plus command files that you use in
- your work: Mode, Chkdsk, Edlin, etc.
- It also contains the batch files you
- use (there is lots of opportunity to
- use .BAT files when working in IBM
- Pascal). The Pascal work diskette has
- to contain one file from the compiler
- distribution: PASKEY. And finally,
- the work diskette gets all scratch
- files and the working copies of all
- source programs while they are being
- worked on. A work diskette is never
- backed up; the policy is that there
- is nothing on it that can't be
- recreated or retrieved from somewhere
- else.
-
- The third diskette in the system is
- the compiler disk. The following
- files just fit on one double-sided
- diskette:
-
- PAS1.EXE PAS2.EXE
- PASCAL.LIB LINK.EXE
-
- This diskette can have a
- write-protect sticker on it. Here's
- how it works. The work diskette stays
- in the A drive all the time. Insert
- the relevant project diskette in the
- B drive and copy the program to be
- modified from B to A. Edit it on A.
- Put the compiler diskette in the B
- drive and run a batch file like this
- one:
-
- B:PAS1 %1,,CON
- PAUSE hit enter if
- "No Errors Found"
- else Break
- B:PAS2
- PAUSE hit enter if
- "No Errors Found"
- else Break
- B:LINK %1,,NUL,B:PASCAL
-
- When the new program works, put the
- project diskette back in B and copy
- the final version of the source and
- object (but not EXE) from A to B. If
- you have only single-sided drives,
- you will have to use three compiler
- disks; your .BAT file can prompt you
- when to change them. Frankly, I don't
- see how users of single-sided drives
- can compile at all; the temporary
- files (PASIBF.*) are terribly big. At
- the very least, you will have to
- erase every possible file from the
- work diskette before starting the
- compile; a batch file can help can
- help there, too.