I made today a very simple program to test a new VCL. The size of the 
exe looked ok.

Then I added in the 'uses' clause a unit I created and which contains 
very useful routines that I created/collected over the years. This unit 
(DCU file) is 104Kb.
After recompiling, the size of the exe was bigger with 106Kb. It looks 
like it added the whole DCU in the exe while I knew that only the used 
code would be integrated in exe.

I will try to reproduce today this 'experiment' with different DCUs.


Gabriel

Rob Kennedy wrote:
> CubicDesign wrote:
>   
>> I have a question about the size of the EXE file made by Delphi compiler.
>> I thought that Delphi put in the exe ONLY the used procedures/functions 
>> from a unit/DCU.
>>     
>
> That's correct. What have you found in your EXE that you (pretending to 
> be the compiler) can prove will never be called?
>
>   
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to