Re: BDS2006 exe sizes



Ian wrote:
On Fri, 24 Feb 2006 06:28:44 GMT, Uffe Kousgaard wrote:
Did you just decide to drop BDS2006 just because one file is
slightly bigger than the other?

Slightly? I don't consider 25,600 bytes a slight increase. In D7, a simple console application is only 16,384 bytes.

You need to agree on exactly what code you're using. The code Dodgy showed (duplicated below) is Delphi's default console-mode program. Note that it includes the SysUtils unit, which drags in a lot of exception-related code. Ian, the size you just cited suggests you didn't include SysUtils in your code. That would account for the great difference in size.

In Delphi 2005, a console-mode program with SysUtils is about 40 KB. Without SysUtils, it's about 13.5 KB.

program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils;

begin
writeln('Hello World');
end.

I wonder how you see this program as a test of a compiler's efficiency. The compiler only processes one line of code. (And I suspect the code generated by the compiler for that line hasn't changed by more than a few bytes over the past decade.)

--
Rob
.



Relevant Pages

  • Re: BDS2006 exe sizes
    ... I don't consider 25,600 bytes a slight increase. ... I had left sysutils in both tests, ... was included by default for console applications. ... be 18,432 bytes - almost the same as your D7 app. ...
    (comp.lang.pascal.delphi.misc)
  • Re: BDS2006 exe sizes
    ... I don't consider 25,600 bytes a slight increase. ... When such a program is started under Windows, then Windows has to provide such an environment. ... A 32 bit console application uses Windows APIs instead of interrupts. ... The capabilities of these APIs grow with every new Windows version, so that the libraries also must grow, in order to make the new console etc. functionality available to applications. ...
    (comp.lang.pascal.delphi.misc)
  • Re: cannot run console applications
    ... Does your program use SysUtils or other VCL related units? ... > makes Win32 API calls in its startup code which will be blocked by the ... The Console applicazion wizard generates an application like this: ... SysUtils objects) the program works fine in a network share too. ...
    (borland.public.delphi.non-technical)
  • Re: cannot run console applications
    ... >> CONSOLE} ... Does your program use SysUtils or other VCL related units? ... makes Win32 API calls in its startup code which will be blocked by the ...
    (borland.public.delphi.non-technical)
  • Re: cannot run console applications
    ... Sergio Sette wrote: ... Why SysUtils is included by default without a comment that informs ... > How to configure a console application that uses SysUtils? ... Delphi 7 does this as well, so it's probably a hold over from the Win32 ...
    (borland.public.delphi.non-technical)