This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:compilers [2014/01/10 06:54] papa |
tutorials:compilers [2014/01/10 07:32] (current) papa |
||
---|---|---|---|
Line 8: | Line 8: | ||
- Run the program in memory. (Optionally save the program' | - Run the program in memory. (Optionally save the program' | ||
- | TOPS-20 EXEC provides a number of commands | + | TOPS-20 EXEC provides a number of commands |
==== @COMPILE ==== | ==== @COMPILE ==== | ||
+ | |||
+ | Compile one or more program source files and produce relocatable binary object (.REL) file(s). The correct compiler will be selected based on file type. If you use the standard file types for your ALGOL, COBOL, FORTRAN, or MACRO program (.ALG, .CBL, .FOR, .MAC, respectively), | ||
+ | |||
+ | Simplest form: '' | ||
==== @LOAD ==== | ==== @LOAD ==== | ||
+ | |||
+ | Load the specified .REL file(s) into memory. '' | ||
+ | |||
+ | If a .REL file does not exist, or if the corresponding source file has been updated more recently than the .REL file, compile the program source and load the resulting object file. | ||
+ | |||
+ | (The program is //not// run after loading and linking.) | ||
+ | |||
+ | Simplest form: '' | ||
==== @RUN ==== | ==== @RUN ==== | ||
+ | |||
+ | If an executable file is specified and exists (default file type is .EXE), run the executable file. If a .EXE file exists, the '' | ||
+ | |||
+ | If no file is specified, run the program currently loaded in memory. | ||
+ | |||
+ | Simplest form: '' | ||
==== @SAVE ==== | ==== @SAVE ==== | ||
+ | |||
+ | Save the program currently loaded into memory as an executable .EXE file. The default file name is the same as the loaded object file' | ||
+ | |||
+ | Saving the executable allows the program to be run later without having to compile or load/link the program. | ||
+ | |||
+ | // | ||
+ | |||
+ | Simplest form: '' | ||
==== @EXECUTE ==== | ==== @EXECUTE ==== | ||
+ | |||
+ | If object (.REL) file(s) for the specified file(s) exit and are up-to-date, load, link, and run. If there is no object file, or the object file has been updated less recently than the corresponding source file, compile the program source and load, link, and run the resulting object file. | ||
+ | |||
+ | Simplest form: '' | ||
==== Supported compilers ==== | ==== Supported compilers ==== | ||
- | ^ Compiler | + | The EXEC compilation commands can invoke any of the following compilers. The compiler will be selected based on the type of the file specified, or the default selection can be overridden by specifying the command switch for the desired compiler. |
- | | ALGOL |.ALG[1]| | + | |
- | | BLISS-10 | + | ^ Compiler |
- | | BLISS-36 | + | | ALGOL |.ALG[1]|/ALGOL| |
- | | COBOL |.CBL[1]| | + | | BLISS-10 |
- | | COBOL-68 | + | | BLISS-36 |
- | | COBOL-74 | + | | COBOL |.CBL[1]|/COBOL| |
- | | FAIL |.FAI| | + | | COBOL-68 |
- | | FORTRAN | + | | COBOL-74 |
- | | MACRO assembler | + | | FAIL |.FAI|/FAIL| |
- | | PASCAL | + | | FORTRAN |
- | | SAIL |.SAI| | + | | MACRO assembler |
- | | SIMULA | + | | PASCAL |
+ | | SAIL |.SAI|/SAIL| | ||
+ | | SIMULA | ||
+ | | SNOBOL | ||
[1]: The system will automatically search for source files with these standard types and run the appropriate compiler if you omit the file type(s) when you run @COMPILE, @LOAD, or @EXECUTE. | [1]: The system will automatically search for source files with these standard types and run the appropriate compiler if you omit the file type(s) when you run @COMPILE, @LOAD, or @EXECUTE. | ||
- | | SNOBOL | + |