TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
USING <strong>PASCAL</strong> ON <strong>TOPS</strong>-<strong>20</strong><br />
8.6 EXECUTING A PROGRAM<br />
After you have compiled and linked your program, you can execute the<br />
object file with the START command; or you can save the file with the<br />
SAVE command, and then execute it with the RUN command.<br />
You ~an save time by using the EXECUTE command. The EXECUTE command<br />
acts by performing a LOAD command (which may start with a COMPILE<br />
command) followed immediately by a START command. So, instead of<br />
performing severa] separate steps of running the compiler, compiling<br />
your program, loading your program, and starting your program, you can<br />
compile, load, and start your program with a singJe command:<br />
(~EXECUTE f i 1 ename ~)<br />
Using the EXECUTE command does not save the executable image of the<br />
object file. The SAVE command stores a copy of the executabJe image<br />
in an executable file. The default file type that is created is EXE.<br />
After an executable image is saved, you can execute it with the RUN<br />
command. The SAVE and RUN commands have the form:<br />
(~~~AVE f i 1 ename ~<br />
@f~UN f i 1 ename ~<br />
You must specify the file name; default values are<br />
omit optional elements of the file specification.<br />
type is EXE.<br />
appl ied if you<br />
Th e d e fa u] t f i 1 e<br />
8.7 EXAMPLES<br />
Example 1<br />
(~F'ASCAL..<br />
<strong>PASCAL</strong>> ~:;()HTEf~<br />
PASCAI...:>/EXIT<br />
@EXE SnRTEf~<br />
/NOFLAG/L.. I ST I NG<br />
This example uses the <strong>PASCAL</strong> command to compile the source<br />
SORTER. The /NOFLAG switch prevents display of messages<br />
nonstandard <strong>PASCAL</strong> statements in the program; the /LISTING<br />
generates a .LST file of the compilation in your disk area.<br />
Example 2<br />
@.<strong>PASCAL</strong>.<br />
<strong>PASCAL</strong>:>MERGER/DEBUG<br />
F'ASCAI, .. >/EX I T<br />
@.LOAD MERGER/DEBUG<br />
@DEBUG MERGER<br />
f i] e<br />
about<br />
switch<br />
The <strong>PASCAL</strong> command is used to compile the program with the debugger,<br />
PASDDT. The DEBUG command is used to load the compiled program and<br />
the <strong>PASCAL</strong> debugger automatically. The DEBUG command executes the<br />
program with PASDDT.<br />
8-17