GW> Delphi's linker is even smarter... it
GW> removes not only unused units, but also unused procedures and methods.
BS> Are you sure ? The way that the most trivial program that uses a
BS> visualcomponent jumps to at least 250k or so in size certainly
BS> creates theimpression that the Turbo Pascal smart linker has become
BS> an extinct species.
Butting in and adding my 2 cents ....You must understand that in order for
an application to create a simple window and all the stuff that makes it work
as it does, requires a reasonable amount of code. A comparable C program
using the MFC or OWL might have a small exe but would require a big DLL. The
Delphi app is stand alone and requires no DLL (except for the Windows API
DLLs which must be there anyway). This is something I have mentioned in the
past a few times, it would be nice to have the option to distribute a DLL or
set of DLLs for use by Delphi apps and then compile your apps to use those
DLLs instead of putting reusable code in each exe. Then as I mentioned early
in this thread, one could remove all the units, make API calls, setup message
loops and do all the stuff necessary to make a windows program work (wasting
much time for little payoff in my opinion) and end up with a smaller exe.
Steve
--- FreeMail 1.07b
(1:203/21)
---------------
* Origin: The Visual Programmer's Workshop - N.H., Ca (916)338-3230 *
|