Subject | EXE size: Delphi vs CPPB |
---|---|
Author | seryodkin |
Post date | 2003-05-04T17:28:16Z |
The project:
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
EXE size (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
The difference CPPB 5 vs Delphi 5 is
1 773 056 - 1 050 112 = 722 944 ?!?!?!
The difference CPPB 6 vs Delphi 7
(though IDEs are of the different generations) is
1 918 464 - 1 129 472 = 788 992 ?!?!?!
Why code generated by CPPB is SO bigger?
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
EXE size (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
The difference CPPB 5 vs Delphi 5 is
1 773 056 - 1 050 112 = 722 944 ?!?!?!
The difference CPPB 6 vs Delphi 7
(though IDEs are of the different generations) is
1 918 464 - 1 129 472 = 788 992 ?!?!?!
Why code generated by CPPB is SO bigger?