[DUG] Delphi linker and library units

Conor Boyd lists at conor.org.uk
Wed Aug 10 14:53:14 NZST 2005


In a, errr, word:

(b) 

C.

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of John Bird

A question about how Delphi works...

1 - Main question is about Library routines.  I maintain a library unit with
a lot of (non-visual) procedures and functions for various miscellaneous
tasks - date formatting, number formatting, file i/o etc.  Some 70 routines
and growing.  Now when I use this unit in a program, does (a) everything in
the unit get compiled and linked in, or (b) is it smart enough just to get
just the code called (including library procedures called from another
called from the program).  I have come from another language where it always
did (b), hoping Delphi is as smart.  If not, then I need to separate my
library procedures into smaller logically related units rather than one
humungous big unit with everything in it to avoid the programs getting
bloated with non-used code.



More information about the Delphi mailing list