Discussion:
rebuild of turbo pascal .exe, missing .TPU modules
(too old to reply)
red fox
2012-09-01 19:08:14 UTC
Permalink
Turbo Pascal Program Re-Build

I am attempting to re-build a Turbo Pascal application
that was written by a programmer no longer living.

I am unable to find any build documentation and there are a
number of different versions of source libraries and Turbo Pascal compilers.

I'm currently trying to rebuild with the following compiler, identified as

Help
About shows

Turbo Pascal
Version 7.0
Copyright <c) 1983,92 by
Borland International, Inc.

This is my first experience with Turbo Pascal and so far, I have been unable
to find any free Turbo Pascal manuals. My background is mainframe Pascal and I'm trying to get an understanding of .TPU and .OBJ files that have been exposed to me in attempting to re-compile the application.

The name of the executing application is CORKCALC.EXE .

The CORKCALC.PAS source includes the following.

USES
DelayFix,
crt,
dos,
printer,
bstrings,
SpdWrite,
PopMenu,
NatCodes,
NewerFil;


Unfortunately, I am unable to find the .TPU modules for crt, dos, and printer.

I have found CRT.INT, DOS.INT, and PRINTER.INT with the Turbo Pascal 7.0 installation but have been unsuccessful in producing the corresponding .TPU modules.

I'm also wondering if there is any way of determining what version of Turbo Pascal was used to produce the existing operational .EXE file.

Any guidance, suggestions, manual references, or how-to instructions for a
beginning Turbo Pascal user would be appreciated.

Regards

Lorne Dudley
Marco van de Voort
2012-09-02 14:38:38 UTC
Permalink
Post by red fox
The name of the executing application is CORKCALC.EXE .
The CORKCALC.PAS source includes the following.
USES
DelayFix,
crt,
dos,
printer,
bstrings,
SpdWrite,
PopMenu,
NatCodes,
NewerFil;
Unfortunately, I am unable to find the .TPU modules for crt, dos, and printer.
The others do not come with any TP and thus are 3rd party. So if you don't have the
them, your sources are incomplete.
Dr J R Stockton
2012-09-02 19:27:46 UTC
Permalink
In comp.lang.pascal.borland message <c475b219-0531-420e-ac5e-100c16d3a1c
Post by red fox
Turbo Pascal Program Re-Build
I am attempting to re-build a Turbo Pascal application
that was written by a programmer no longer living.
I am unable to find any build documentation and there are a
number of different versions of source libraries and Turbo Pascal compilers.
I'm currently trying to rebuild with the following compiler, identified as
Help
About shows
Turbo Pascal
Version 7.0
Copyright <c) 1983,92 by
Borland International, Inc.
This is my first experience with Turbo Pascal and so far, I have been unable
to find any free Turbo Pascal manuals. My background is mainframe
Pascal and I'm trying to get an understanding of .TPU and .OBJ files
that have been exposed to me in attempting to re-compile the
application.
The name of the executing application is CORKCALC.EXE .
The CORKCALC.PAS source includes the following.
USES
DelayFix,
crt,
dos,
printer,
bstrings,
SpdWrite,
PopMenu,
NatCodes,
NewerFil;
Unfortunately, I am unable to find the .TPU modules for crt, dos, and printer.
Correct. I think they must be in the system library.
Post by red fox
I have found CRT.INT, DOS.INT, and PRINTER.INT with the Turbo Pascal
7.0 installation but have been unsuccessful in producing the
corresponding .TPU modules.
I'm also wondering if there is any way of determining what version of
Turbo Pascal was used to produce the existing operational .EXE file.
Search the EXE for the string "Borland" and you will, IIRC, see the year
of the compiler. I use 7.01 of 1993. If you can find the Borland
Pascal compiler rather than their Turbo Pascal one - it is better. It
can compile to DOS, DPMI, and Windows modes, and the IDE has an extra
very useful feature, Symbol, on the Search menu.
Post by red fox
Any guidance, suggestions, manual references, or how-to instructions for a
beginning Turbo Pascal user would be appreciated.
See sig below. Read the newsgroup FAQ; read tsfaqp.zip FAQ; read the
obvious parts of my web site; and other sites. See also <http://en.wikip
edia.org/wiki/Borland_pascal> and its links.

If you "have" a fast PC, with a CPU over 200 MHz (sic), you should need
either to patch each EXE, or, better, to compile with a better CRT unit.
I use Pedt Scragg's CRT unit, inserted with TPUmover. Pedt is still
active in News, and might even read this group. But your DelayFix
probably deals with the matter.

NOTE - BP generates 16-bit code, which runs in 16 or 32 bit Windows,
and, I hope, in the WinXP subsystem of 64-bit windows. Depending on the
nature of your code, it might not be too hard to modify it for Delphi,
which gives 32-bit code. Some versions of Delphi used to be free.
--
(c) John Stockton, nr London UK. E-addr via Homepage. Turnpike v6.05 MIME.
<http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ;
<ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ.
Loading...