[comp.lang.pascal] Turbo Pascal .tpu Format

streich@.Colorado.EDU (Mark Streich) (11/06/90)

Does anyone know where I can get information about the internal format
of Turbo Pascal's .tpu file format? (i.e., how are symbols stored, where
does the code start, etc.)

Thanks. (in advance)

Mark Streich
streich@tigger.colorado.edu

abcscnuk@Twg-S5.uucp (Naoto Kimura (ACM)) (11/09/90)

In article <29242@boulder.Colorado.EDU> streich@.Colorado.EDU (Mark Streich) writes:
>Does anyone know where I can get information about the internal format
>of Turbo Pascal's .tpu file format? (i.e., how are symbols stored, where
>does the code start, etc.)
>
>Thanks. (in advance)
>
>Mark Streich
>streich@tigger.colorado.edu

Hopefully, when I things ease up a bit at work and school, I should be
finishing up a program that dumps out the symbolic information contained
in Borland's Turbo Pascal .TPU files.  So far I've been able to puzzle
out 75% of the format of user unit files, but so far I've had little
luck in figuring out the format of the System unit.  The format for that
one seems to be slightly different.  So far, I've got a program that
dumps the symbolic information (but doesn't output type) in versions
4.0 thru 5.5 (the first several bytes tell you which version).  All I
figure I need to do is figure out how to read the System.TPU file to be
able to interpret some of the type information.

                //-n-\\			 Naoto Kimura
        _____---=======---_____		 (abcscnuk@csuna.csun.edu)
    ====____\   /.. ..\   /____====
  //         ---\__O__/---         \\	Enterprise... Surrender or we'll
  \_\                             /_/	send back your *&^$% tribbles !!