要讲快, 在编译上Delphi比BCB快肯多. 运行程序上, Delphi编译的程序比BCB编译
的程序多少快一点. 在Exe文件大小上, BCB编译的比Delphi相应版本编译的大一些.
为什么? 下面是Teach Yourself Delphi 4 in 21 Days的原话.
<big>Delphi Compiles Faster and Produces Smaller EXEs</big>
Delphi programs will always compile faster than C++Builder programs.
Pascal compiles much faster than C++ because it isn't as complex.
C++Builder's use of pre-compiled headers and the incremental linker
helps reduce the effects by speeding up compile and link times, but
Delphi programs still compile much faster than C++Builder programs.
Along the same lines, Delphi programs are always smaller than
C++Builder programs. This is because of a number of factors, but
primarily because the VCL is written in Object Pascal. Because the
VCL is written in Object Pascal, a C++Builder program has to include
both the C++ Runtime Library and the Object Pascal Runtime Library.
Both C++ and Pascal use different exception handling and runtime type
information code, which results in extra code in a C++Builder
application.