Date : Sat, 25 May 1985 23:56:00-EDT
From : ABN.ISCAMS@USC-ISID.ARPA
Subject: Saving 10Kb in TurboPascal
NetLandians,
Nice article in the latest PC Tech Journal by John Figueras gave me an idea.
He reminds us that .COM files compiled by TurboPascal carry with them the
TurboPascal runtime library - slightly more than 10Kb for the PC version.
He suggests (and provides a wee little bit of code) that if we have a RUN
program and run .CHN type files, we can save a LOT of space if we have a LOT
of Turbo programs. The RUN.COM will carry the 10Kb of runtime library, but
the .CHN files are nothing but pure code!
I grabbed ARGLIB.PAS from a TURBTOOL.LBR at DEC-MARLBORO (thanks, guys),
to provide handling the .CHN file name at the command line of CP/M, and the
whole mess can be found (available via ANONYMOUS FTP) from my directory,
ABN.ISCAMS, at my host, USC-ISID.ARPA.
File names are:
RUNCHN.PAS
TESTRUN.PAS (in case you don't believe it)
Nice little utility. I kept it simple (no handling of fancy parameters at
the command line, only RUNCHN FOOB (with the assumption that FOOB is really
FOOB.CHN, and FOOB.CHN doesn't expect any OTHER parameters handed to it!).
Lost the pointer to the Pascal guys on the net - if someone might forward
this (or an abbreviated extract) to them...
Regards,
David Kirschbaum
Toad Hall
ABN.ISCAMS@USC-ISID