The usual way to compile a program is:
- Create the source using an editor
- Create the object codes invoking the compiler
- Create the executable program using a linker and the Run Time Library
As is well-known TURBO PASCAL is written as a development system made of the following modules:
- Run Time Library
- Menu
- Editor
- Compiler
Therefore only one program is needed − instead of the three ones listed above.
I assembled a new compiler version to be invoked by a CP/M command line, using the modules Run Time Library and Compiler.
For it I wrote a module which serves as an interface between CP/M and the real compiler.
This version of TURBO PASCAL does not allow running programs in memory but only generating .COM or .CHN files.
Invoke it as follows:
TURBOCOM SOURCE_file{.PAS} {/Start_address} {/End_address} {/H}}
The options are defined as follows:
Option | /Saaaa | defines a start address |
Option | /Eaaaa | defines an end address |
Option | /H | selects a chain file |
|