A commercial program was available in the days of MS-DOS 2.11 which did eliminate needless routines from a compiled program created by TURBO PASCAL.
This decreased the .COM file accordingly because the entire Run Time Library1 is linked into any compiled program.
I planned to perform this for CP/M, too2.
But it led to disassembling of the complete compiler.
I also added some new functions as well as procedures.
But not only because of these reasons but also due to some missing functions in the CP/M implementation of TURBO PASCAL I started disassembling.
E.g. the function „APPEND" was missing which was easy to code.
The JOYCE allowed to find out the current cursor position (WHEREX, WHEREY) easily.
Also I like the DU: specification describing files.
At last I rewrote the editor for best utilisation of the JOYCE keyboard.
After assembling the modules a new version of the compiler will be generated using the CP/M PLUS linker by:
LINK TPnew=TR,TM,TEN,TC,TI[A]
Find the sources here:
Stimulated by the work of disassembling TURBO PASCAL I composed a TURBO PASCAL compiler which may be invoked by a command line like usual CP/M programs.
|
Download the original package here:
|