Newsgroups: comp.lang.pascal
Path: utzoo!utgpu!watserv1!maytag!watstat.waterloo.edu!dmurdoch
From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch)
Subject: Re: Turbo Pascal
Message-ID: <1991Feb15.012124.11890@maytag.waterloo.edu>
Sender: daemon@maytag.waterloo.edu (Admin)
Organization: University of Waterloo
References: <1991Feb14.190219.29734@porthos.cc.bellcore.com>
Date: Fri, 15 Feb 1991 01:21:24 GMT
Lines: 28

In article <1991Feb14.190219.29734@porthos.cc.bellcore.com> rcerami@chaucer.uucp (24383-richard cerami(B354)m000) writes:
>
>I am currently using Turbo Pascal 5.5 and have several questions
>about it.
>
> 1.  If I compile a program that USES a unit, will the unused procedures
>     of that unit be included in the output (.exe)?

Generally no, but there are exceptions.  If any of the procedures you use
uses another procedure, then the other one will come in too.  Same thing if
the unit initialization code uses code in the unit.  Also, if a procedure 
that's referenced is coming from an external .OBJ file, the whole code from the 
.OBJ comes in.  Finally, virtual methods come in if you use any instances of
the object type, and make references to the same method in other related
objects.
>
> 2.  There is a limit to the size/amount of code you can edit
>     using the Turbo editor.  What is the limit?  Can it be increased?

It's probably 64K per file, and probably not.  You can get around it by
splitting your file into units.  Eventually (sooner than you'd think!) you'll
hit compiler limits if you try to compile in the IDE; you can do bigger
compiles with TPC.

Duncan Murdoch



