Subject EXE size: Delphi vs CPPB (CORRECTED)
Author Seryodkin Victor
There was a mistake in previous message
"EXE size: Delphi vs CPPB"
EXE sizes were wrong.

The real situation is following.

Projcts are identical - see details below.
EXE sizes (build on Win 2000 Pro SP3):
Delphi 5 Enterprise Edition 1 050 112 bytes
Delphi 7 Enterprise Edition 1 129 472 bytes
CPP Builder 5 Enterprise Edition 1 773 056 bytes
CPP Builder 6 Enterprise Edition 1 918 464 bytes

Difference in EXE size produced using CPPB 5 vs Delphi 5 is
1 773 056 - 1 050 112 = 722 944 bytes

Difference in EXE size produced by CPPB 6 vs Delphi 7
(though IDEs are of the different generations) is
1 918 464 - 1 129 472 = 788 992 bytes

CPPB adds about 720 - 780 KBytes in comparison to Delphi.
What's the matter?


Project explanation:

1 Unit:
1 Form,
2 Buttons
1 IB_Connection
1 IB_Transaction
1 IB_Query
1 IB_SataSource
1 IB_Grid

Button1Click code:
IB_Connection1.Protocol:=cpLocal;
IB_Connection1.DatabaseName:='D:\1.gdb';
IB_Connection1.Connected:=true;
IB_Query1.Open;

Button2Click code:
IB_Query1.Close;
IB_Connection1.Connected:=false;

Thats all, no any code.

Such a project has been created 4 times from the very beginning using
Delphi 5 Enterprise Edition update pack 1,
Delphi 7 Enterprise Edition,
CPP Builder 5 Enterprise Edition update pack 1,
CPP Builder 6 Enterprise Edition.

Build options:
Optimozation: ON
Debug info: OFF
Build with runtime packages: OFF
for CPPB Linker - Use dinamic RTL: OFF