community.borland.com

Article #15127: Units compiled more than once

 Technical Notes Database

TN127D.txt   Units compiled more than once
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  4.0+

Description:
Q. If two units use a third unit, does the third unit get
   included twice in my program?
A. No.  All your units are "linked" together when you compile
   your program. Only one copy of each procedure and function
   used is generated.  There is NO duplication of run-time code.
   In fact, Turbo Pascal 4.0+ has "smart linking" which
   eliminates any unused code. Turbo Pascal 5.0+ will also "smart
   link" unused data from the final .EXE file.


Reference:


7/16/98 4:35:29 PM
 

Last Modified: 01-SEP-99